[Common] refactoring

This commit is contained in:
Maxim Kadushkin 2017-07-13 11:50:36 +03:00
parent f21567ec31
commit 6ea33aa303
4 changed files with 1 additions and 19 deletions

View file

@ -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 )

View file

@ -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');
}
}
});
},

View file

@ -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': {

View file

@ -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');
}
}
});