From e88fb9b51b185626b47246ebe926c7d8b060f7ab Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Mon, 10 Apr 2017 14:50:58 +0300 Subject: [PATCH] [DE] debug hiding for FileMenu --- apps/documenteditor/main/app/controller/LeftMenu.js | 6 ------ apps/documenteditor/main/app/view/LeftMenu.js | 1 - 2 files changed, 7 deletions(-) diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index 4097c9546..0fb975416 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -256,7 +256,6 @@ define([ if (close_menu) { menu.hide(); - Common.NotificationCenter.trigger('layout:changed', 'menufile'); } }, @@ -272,14 +271,12 @@ define([ if (btn == 'ok') { this.api.asc_DownloadAs(format); menu.hide(); - Common.NotificationCenter.trigger('layout:changed', 'menufile'); } }, this) }); } else { this.api.asc_DownloadAs(format); menu.hide(); - Common.NotificationCenter.trigger('layout:changed', 'menufile'); } } else this.api.asc_DownloadOrigin(); @@ -326,7 +323,6 @@ define([ this.api.put_ShowSnapLines(value===null || parseInt(value) == 1); menu.hide(); - Common.NotificationCenter.trigger('layout:changed', 'menufile'); }, onCreateNew: function(menu, type) { @@ -339,14 +335,12 @@ define([ if (menu) { menu.hide(); - Common.NotificationCenter.trigger('layout:changed', 'menufile'); } }, onOpenRecent: function(menu, url) { if (menu) { menu.hide(); - Common.NotificationCenter.trigger('layout:changed', 'menufile'); } var recentDocPage = window.open(url); diff --git a/apps/documenteditor/main/app/view/LeftMenu.js b/apps/documenteditor/main/app/view/LeftMenu.js index b98bb8e7a..7cc124d6c 100644 --- a/apps/documenteditor/main/app/view/LeftMenu.js +++ b/apps/documenteditor/main/app/view/LeftMenu.js @@ -180,7 +180,6 @@ define([ if ( this.menuFile.isVisible() ) { this.menuFile.hide(); - Common.NotificationCenter.trigger('layout:changed', 'menufile'); } if (btn.options.action == 'search') {