mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 17:13:53 +08:00
[Common] refactoring
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user