- fixed a bug with no default system alias name with new created systems, fixed #508

This commit is contained in:
Mark Friedrich
2017-12-08 23:29:08 +01:00
parent fd26dc32af
commit f0c17976f0
3 changed files with 5 additions and 3 deletions

View File

@@ -581,7 +581,8 @@ define([
if(alias !== data.alias){
// alias changed
system.find('.' + config.systemHeadNameClass).editable('setValue', data.alias);
alias = data.alias ? data.alias : data.name;
system.find('.' + config.systemHeadNameClass).editable('setValue', alias);
}
}

View File

@@ -581,7 +581,8 @@ define([
if(alias !== data.alias){
// alias changed
system.find('.' + config.systemHeadNameClass).editable('setValue', data.alias);
alias = data.alias ? data.alias : data.name;
system.find('.' + config.systemHeadNameClass).editable('setValue', alias);
}
}

View File

@@ -254,7 +254,7 @@ define([
// normalize connection array
connectionTypes = $.grep(connectionTypes, function(n){
// 'default' is added by jsPlumb by default -_-
return ( n.length > 0 && n !== 'default');
return ( n.length > 0 && n !== 'default' && n !== 'active');
});
let data = {