[DE] debug hiding for FileMenu
This commit is contained in:
parent
c8e40f6d03
commit
e88fb9b51b
|
@ -256,7 +256,6 @@ define([
|
||||||
|
|
||||||
if (close_menu) {
|
if (close_menu) {
|
||||||
menu.hide();
|
menu.hide();
|
||||||
Common.NotificationCenter.trigger('layout:changed', 'menufile');
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -272,14 +271,12 @@ define([
|
||||||
if (btn == 'ok') {
|
if (btn == 'ok') {
|
||||||
this.api.asc_DownloadAs(format);
|
this.api.asc_DownloadAs(format);
|
||||||
menu.hide();
|
menu.hide();
|
||||||
Common.NotificationCenter.trigger('layout:changed', 'menufile');
|
|
||||||
}
|
}
|
||||||
}, this)
|
}, this)
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.api.asc_DownloadAs(format);
|
this.api.asc_DownloadAs(format);
|
||||||
menu.hide();
|
menu.hide();
|
||||||
Common.NotificationCenter.trigger('layout:changed', 'menufile');
|
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
this.api.asc_DownloadOrigin();
|
this.api.asc_DownloadOrigin();
|
||||||
|
@ -326,7 +323,6 @@ define([
|
||||||
this.api.put_ShowSnapLines(value===null || parseInt(value) == 1);
|
this.api.put_ShowSnapLines(value===null || parseInt(value) == 1);
|
||||||
|
|
||||||
menu.hide();
|
menu.hide();
|
||||||
Common.NotificationCenter.trigger('layout:changed', 'menufile');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onCreateNew: function(menu, type) {
|
onCreateNew: function(menu, type) {
|
||||||
|
@ -339,14 +335,12 @@ define([
|
||||||
|
|
||||||
if (menu) {
|
if (menu) {
|
||||||
menu.hide();
|
menu.hide();
|
||||||
Common.NotificationCenter.trigger('layout:changed', 'menufile');
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onOpenRecent: function(menu, url) {
|
onOpenRecent: function(menu, url) {
|
||||||
if (menu) {
|
if (menu) {
|
||||||
menu.hide();
|
menu.hide();
|
||||||
Common.NotificationCenter.trigger('layout:changed', 'menufile');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var recentDocPage = window.open(url);
|
var recentDocPage = window.open(url);
|
||||||
|
|
|
@ -180,7 +180,6 @@ define([
|
||||||
|
|
||||||
if ( this.menuFile.isVisible() ) {
|
if ( this.menuFile.isVisible() ) {
|
||||||
this.menuFile.hide();
|
this.menuFile.hide();
|
||||||
Common.NotificationCenter.trigger('layout:changed', 'menufile');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (btn.options.action == 'search') {
|
if (btn.options.action == 'search') {
|
||||||
|
|
Loading…
Reference in a new issue