Fix Bug 38301
This commit is contained in:
parent
76beef570a
commit
557721ab8d
|
@ -1151,22 +1151,6 @@ define([
|
|||
]
|
||||
}
|
||||
);
|
||||
Common.NotificationCenter.on('tab:visible', _.bind(function(action, visible){
|
||||
if (action=='plugins' && visible) {
|
||||
var compactview = false;
|
||||
if ( Common.localStorage.itemExists("de-compact-toolbar") ) {
|
||||
compactview = Common.localStorage.getBool("de-compact-toolbar");
|
||||
} else if ( config.customization && config.customization.compactToolbar )
|
||||
compactview = true;
|
||||
|
||||
if (!compactview) {
|
||||
me.setFolded(false);
|
||||
me.setTab('plugins');
|
||||
me.fireEvent('view:compact', [me, compactview]);
|
||||
Common.NotificationCenter.trigger('layout:changed', 'toolbar');
|
||||
}
|
||||
}
|
||||
}, this));
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
|
|
@ -795,22 +795,6 @@ define([
|
|||
]
|
||||
}
|
||||
);
|
||||
Common.NotificationCenter.on('tab:visible', _.bind(function(action, visible){
|
||||
if (action=='plugins' && visible) {
|
||||
var compactview = false;
|
||||
if ( Common.localStorage.itemExists("pe-compact-toolbar") ) {
|
||||
compactview = Common.localStorage.getBool("pe-compact-toolbar");
|
||||
} else if ( config.customization && config.customization.compactToolbar )
|
||||
compactview = true;
|
||||
|
||||
if (!compactview) {
|
||||
me.setFolded(false);
|
||||
me.setTab('plugins');
|
||||
me.fireEvent('view:compact', [me, compactview]);
|
||||
Common.NotificationCenter.trigger('layout:changed', 'toolbar');
|
||||
}
|
||||
}
|
||||
}, this));
|
||||
}
|
||||
|
||||
return this;
|
||||
|
|
|
@ -1446,22 +1446,6 @@ define([
|
|||
]
|
||||
}
|
||||
);
|
||||
Common.NotificationCenter.on('tab:visible', _.bind(function(action, visible){
|
||||
if (action=='plugins' && visible) {
|
||||
var compactview = false;
|
||||
if ( Common.localStorage.itemExists("sse-compact-toolbar") ) {
|
||||
compactview = Common.localStorage.getBool("sse-compact-toolbar");
|
||||
} else if ( config.customization && config.customization.compactToolbar )
|
||||
compactview = true;
|
||||
|
||||
if (!compactview) {
|
||||
me.setFolded(false);
|
||||
me.setTab('plugins');
|
||||
me.fireEvent('view:compact', [me, compactview]);
|
||||
Common.NotificationCenter.trigger('layout:changed', 'toolbar');
|
||||
}
|
||||
}
|
||||
}, this));
|
||||
}
|
||||
|
||||
if (config.isEdit) {
|
||||
|
|
Loading…
Reference in a new issue