[Common] refactoring
This commit is contained in:
parent
f21567ec31
commit
6ea33aa303
|
@ -202,7 +202,7 @@ define([
|
|||
var me = this;
|
||||
me.btnGoBack.updateHint(me.textBack);
|
||||
me.btnGoBack.on('click', function (e) {
|
||||
me.fireEvent('go:back', ['page:new']);
|
||||
Common.NotificationCenter.trigger('goback', true);
|
||||
});
|
||||
|
||||
if ( me.logo )
|
||||
|
|
|
@ -77,12 +77,6 @@ define([
|
|||
'view:compact' : function (toolbar, state) {
|
||||
me.viewport.vlayout.panels[0].height = state ? 32 : 32+67;
|
||||
}
|
||||
},
|
||||
'Common.Views.Header': {
|
||||
'go:back': function (opts) {
|
||||
Common.NotificationCenter.trigger('goback', /new/.test(opts));
|
||||
// Common.component.Analytics.trackEvent('Back to Folder');
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
|
@ -79,12 +79,6 @@ define([
|
|||
me.viewport.vlayout.panels[0].height = state ? 32 : 32+67;
|
||||
}
|
||||
},
|
||||
'Common.Views.Header': {
|
||||
'go:back': function (opts) {
|
||||
Common.NotificationCenter.trigger('goback', /new/.test(opts));
|
||||
// Common.component.Analytics.trackEvent('Back to Folder');
|
||||
}
|
||||
},
|
||||
// Events generated by main view
|
||||
'Viewport': {
|
||||
|
||||
|
|
|
@ -76,12 +76,6 @@ define([
|
|||
'view:compact' : function (toolbar, state) {
|
||||
me.viewport.vlayout.panels[0].height = state ? 32 : 32+67;
|
||||
}
|
||||
},
|
||||
'Common.Views.Header': {
|
||||
'go:back': function (opts) {
|
||||
Common.NotificationCenter.trigger('goback', /new/.test(opts));
|
||||
// Common.component.Analytics.trackEvent('Back to Folder');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue