diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index 3a6b03b91..107349cc8 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -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 ) diff --git a/apps/documenteditor/main/app/controller/Viewport.js b/apps/documenteditor/main/app/controller/Viewport.js index 7cbe4cf05..fe6907548 100644 --- a/apps/documenteditor/main/app/controller/Viewport.js +++ b/apps/documenteditor/main/app/controller/Viewport.js @@ -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'); - } } }); }, diff --git a/apps/presentationeditor/main/app/controller/Viewport.js b/apps/presentationeditor/main/app/controller/Viewport.js index 2288b2ace..d35e86f09 100644 --- a/apps/presentationeditor/main/app/controller/Viewport.js +++ b/apps/presentationeditor/main/app/controller/Viewport.js @@ -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': { diff --git a/apps/spreadsheeteditor/main/app/controller/Viewport.js b/apps/spreadsheeteditor/main/app/controller/Viewport.js index 16706e615..3d2095fc1 100644 --- a/apps/spreadsheeteditor/main/app/controller/Viewport.js +++ b/apps/spreadsheeteditor/main/app/controller/Viewport.js @@ -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'); - } } });