[All] changed default tab option for compact toolbar
This commit is contained in:
parent
345e19e135
commit
931011ca42
|
@ -135,7 +135,7 @@ define([
|
|||
return t.length && t.data('tab') == tag;
|
||||
},
|
||||
|
||||
setFolded: function(value, deftab) {
|
||||
setFolded: function(value) {
|
||||
this.isFolded = value;
|
||||
|
||||
var me = this;
|
||||
|
@ -194,7 +194,8 @@ define([
|
|||
var tab = active_panel.data('tab');
|
||||
me.$tabs.find('> a[data-tab=' + tab + ']').parent().toggleClass('active', true);
|
||||
} else {
|
||||
me.setTab(deftab);
|
||||
tab = me.$tabs.siblings(':not(.x-lone)').first().find('> a[data-tab]').data('tab');
|
||||
me.setTab(tab);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -364,7 +364,7 @@ define([
|
|||
},
|
||||
|
||||
onChangeCompactView: function(view, compact) {
|
||||
this.toolbar.setFolded(compact, this.appOptions.isEdit ? 'home' : 'plugins');
|
||||
this.toolbar.setFolded(compact);
|
||||
this.toolbar.fireEvent('view:compact', [this, compact]);
|
||||
|
||||
Common.localStorage.setBool('de-compact-toolbar', compact);
|
||||
|
|
|
@ -354,7 +354,7 @@ define([
|
|||
},
|
||||
|
||||
onChangeCompactView: function(view, compact) {
|
||||
this.toolbar.setFolded(compact, this.appOptions.isEdit ? 'home' : 'plugins');
|
||||
this.toolbar.setFolded(compact);
|
||||
this.toolbar.fireEvent('view:compact', [this.toolbar, compact]);
|
||||
|
||||
Common.localStorage.setBool('pe-compact-toolbar', compact);
|
||||
|
|
|
@ -1458,7 +1458,7 @@ define([
|
|||
},
|
||||
|
||||
onChangeViewMode: function(item, compact) {
|
||||
this.toolbar.setFolded(compact, this.appOptions.isEdit ? 'home' : 'plugins');
|
||||
this.toolbar.setFolded(compact);
|
||||
this.toolbar.fireEvent('view:compact', [this, compact]);
|
||||
|
||||
Common.localStorage.setBool('sse-compact-toolbar', compact);
|
||||
|
|
|
@ -1219,7 +1219,7 @@ define([
|
|||
compactview = true;
|
||||
|
||||
if (!compactview) {
|
||||
me.setFolded(false, 1);
|
||||
me.setFolded(false);
|
||||
me.setTab('plugins');
|
||||
me.fireEvent('view:compact', [me, compactview]);
|
||||
Common.NotificationCenter.trigger('layout:changed', 'toolbar');
|
||||
|
|
Loading…
Reference in a new issue