- fixed a bug with no default system alias name with new created systems, fixed #508
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user