[PE] Fix Bug 37566

This commit is contained in:
Julia Radzhabova 2018-04-24 13:46:07 +03:00
parent 2281bc8b12
commit aa7e09b311
2 changed files with 2 additions and 2 deletions

View file

@ -166,7 +166,7 @@ define([
args.forEach(function(sub){
if (sub instanceof Array )
Array.prototype.push.apply(result, sub);
else
else if (sub)
result.push(sub);
});

View file

@ -1963,7 +1963,7 @@ define([
var toolbar = this.toolbar;
toolbar.$el.find('.toolbar').toggleClass('masked', disable);
this.toolbar.lockToolbar(PE.enumLock.menuFileOpen, disable, {array: toolbar.btnsAddSlide.concat(toolbar.btnChangeSlide, toolbar.btnPreview, toolbar.btnHide)});
this.toolbar.lockToolbar(PE.enumLock.menuFileOpen, disable, {array: toolbar.btnsAddSlide.concat(toolbar.btnChangeSlide, toolbar.btnPreview)});
if(disable) {
mask = $("<div class='toolbar-mask'>").appendTo(toolbar.$el.find('.toolbar'));
Common.util.Shortcuts.suspendEvents('command+k, ctrl+k, alt+h, command+f5, ctrl+f5');