diff --git a/apps/pdfeditor/main/app/controller/Toolbar.js b/apps/pdfeditor/main/app/controller/Toolbar.js index 4fc07adc52..7f2c987108 100644 --- a/apps/pdfeditor/main/app/controller/Toolbar.js +++ b/apps/pdfeditor/main/app/controller/Toolbar.js @@ -1279,7 +1279,7 @@ define([ this._state.initEditing = false; } - if (!this.mode.isPDFEdit && toolbar.isTabActive('ins')) + if (this.mode.isPDFEdit || toolbar.isTabActive('ins')) toolbar.setTab('home'); toolbar.setVisible('ins', this.mode.isPDFEdit); $host.find('.annotate').toggleClass('hidden', this.mode.isPDFEdit); diff --git a/apps/spreadsheeteditor/main/app/controller/Statusbar.js b/apps/spreadsheeteditor/main/app/controller/Statusbar.js index 33d07bb29e..d90033be77 100644 --- a/apps/spreadsheeteditor/main/app/controller/Statusbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Statusbar.js @@ -597,10 +597,12 @@ define([ return; } - var btn; + var btn, + supportBooks = me.api.asc_isSupportCopySheetsBetweenBooks(); me.copyDialog = new SSE.Views.Statusbar.CopyDialog({ title : me.statusbar.itemMoveOrCopy, sheets : items, + supportBooks: supportBooks, spreadsheetName: me.api.asc_getDocumentName(), isDesktopApp: me.statusbar.mode.isDesktopApp, handler : function(result, i, copy, workbook) { @@ -642,7 +644,7 @@ define([ me.copyDialog.changeSpreadsheets(workbooks); } }; - me.api.asc_getOpeningDocumentsList(callback); + supportBooks && me.api.asc_getOpeningDocumentsList(callback); }, onAddWorksheetClick: function(o, index, opts) { diff --git a/apps/spreadsheeteditor/main/app/view/Statusbar.js b/apps/spreadsheeteditor/main/app/view/Statusbar.js index e7c45a30a0..82ea06a9d9 100644 --- a/apps/spreadsheeteditor/main/app/view/Statusbar.js +++ b/apps/spreadsheeteditor/main/app/view/Statusbar.js @@ -1112,10 +1112,12 @@ define([ }, template: '
' + + '<% if ( supportBooks ) { %>' + '
' + '' + '
' + '
' + + '<% } %>' + '
' + '' + '
' + @@ -1126,7 +1128,8 @@ define([ initialize : function(options) { _.extend(this.options, options || {}, { labelSpreadsheet: this.textSpreadsheet, - labelMoveBefore: this.textMoveBefore + labelMoveBefore: this.textMoveBefore, + supportBooks: !!options.supportBooks }); this.options.tpl = _.template(this.template)(this.options);