From 5cbac85ab2d359dd75e5ce30fe5c5d8c0c0366fd Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 17 Apr 2017 17:25:02 +0300 Subject: [PATCH 001/214] [SSE] Added jszip, jszip-utils. --- apps/spreadsheeteditor/main/app.js | 6 +++++- apps/spreadsheeteditor/main/app_dev.js | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app.js b/apps/spreadsheeteditor/main/app.js index 7ef127121..3f3f6a2ec 100644 --- a/apps/spreadsheeteditor/main/app.js +++ b/apps/spreadsheeteditor/main/app.js @@ -54,6 +54,8 @@ require.config({ jmousewheel : '../vendor/perfect-scrollbar/src/jquery.mousewheel', xregexp : '../vendor/xregexp/xregexp-all-min', sockjs : '../vendor/sockjs/sockjs.min', + jszip : '../vendor/jszip/jszip.min', + jsziputils : '../vendor/jszip-utils/jszip-utils.min', allfonts : '../../sdkjs/common/AllFonts', sdk : '../../sdkjs/cell/sdk-all-min', api : 'api/documents/api', @@ -106,7 +108,9 @@ require.config({ 'underscore', 'allfonts', 'xregexp', - 'sockjs' + 'sockjs', + 'jszip', + 'jsziputils' ] }, gateway: { diff --git a/apps/spreadsheeteditor/main/app_dev.js b/apps/spreadsheeteditor/main/app_dev.js index 1cc730a2d..5e2f4d2eb 100644 --- a/apps/spreadsheeteditor/main/app_dev.js +++ b/apps/spreadsheeteditor/main/app_dev.js @@ -54,6 +54,8 @@ require.config({ jmousewheel : '../vendor/perfect-scrollbar/src/jquery.mousewheel', xregexp : '../vendor/xregexp/xregexp-all-min', sockjs : '../vendor/sockjs/sockjs.min', + jszip : '../vendor/jszip/jszip.min', + jsziputils : '../vendor/jszip-utils/jszip-utils.min', api : 'api/documents/api', core : 'common/main/lib/core/application', notification : 'common/main/lib/core/NotificationCenter', @@ -119,6 +121,8 @@ require([ 'analytics', 'gateway', 'locale', + 'jszip', + 'jsziputils', 'sockjs', 'underscore' ], function (Backbone, Bootstrap, Core) { From a3709838c3cc13828a96841c58e0aaba65e3ce22 Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Mon, 17 Apr 2017 19:41:45 +0300 Subject: [PATCH 002/214] add easysax.js, openxml.js --- apps/spreadsheeteditor/sdk_dev_scripts.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/sdk_dev_scripts.js b/apps/spreadsheeteditor/sdk_dev_scripts.js index ed9644d13..8b506b265 100644 --- a/apps/spreadsheeteditor/sdk_dev_scripts.js +++ b/apps/spreadsheeteditor/sdk_dev_scripts.js @@ -198,5 +198,7 @@ var sdk_dev_scrpipts = [ "../../../../sdkjs/common/Drawings/Format/DrawingContent.js", "../../../../sdkjs/common/clipboard_base.js", "../../../../sdkjs/common/plugins.js", - "../../../../sdkjs/common/text_input.js" + "../../../../sdkjs/common/text_input.js", + "../../../../sdkjs/common/easysax.js", + "../../../../sdkjs/common/openxml.js" ]; \ No newline at end of file From b2b4321a08ab730867326bb56a24ba96796ad68f Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Wed, 19 Apr 2017 13:27:45 +0300 Subject: [PATCH 003/214] add PivotTables.js --- apps/spreadsheeteditor/sdk_dev_scripts.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/spreadsheeteditor/sdk_dev_scripts.js b/apps/spreadsheeteditor/sdk_dev_scripts.js index 8b506b265..2496f5a7f 100644 --- a/apps/spreadsheeteditor/sdk_dev_scripts.js +++ b/apps/spreadsheeteditor/sdk_dev_scripts.js @@ -115,6 +115,7 @@ var sdk_dev_scrpipts = [ "../../../../sdkjs/cell/model/DrawingObjects/Format/ImagePrototype.js", "../../../../sdkjs/cell/model/DrawingObjects/Format/GroupPrototype.js", "../../../../sdkjs/cell/model/DrawingObjects/Format/ChartSpacePrototype.js", + "../../../../sdkjs/cell/model/PivotTables.js", "../../../../sdkjs/common/apiBase.js", "../../../../sdkjs/cell/api.js", "../../../../sdkjs/common/Private/license.js", From a22f2948c7a120fab8179aadb309c084bbb8e6ff Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 25 Apr 2017 15:19:25 +0300 Subject: [PATCH 004/214] [SSE] Added error LockedCellPivot. --- apps/spreadsheeteditor/main/app/controller/Main.js | 7 ++++++- apps/spreadsheeteditor/main/locale/en.json | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 70127dc20..4518fdb87 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -1179,6 +1179,10 @@ define([ config.msg = this.errorAccessDeny; break; + case Asc.c_oAscError.ID.LockedCellPivot: + config.msg = this.errorLockedCellPivot; + break; + default: config.msg = this.errorDefaultMessage.replace('%1', id); break; @@ -2100,7 +2104,8 @@ define([ errorSessionToken: 'The connection to the server has been interrupted. Please reload the page.', errorAccessDeny: 'You are trying to perform an action you do not have rights for.
Please contact your Document Server administrator.', titleServerVersion: 'Editor updated', - errorServerVersion: 'The editor version has been updated. The page will be reloaded to apply the changes.' + errorServerVersion: 'The editor version has been updated. The page will be reloaded to apply the changes.', + errorLockedCellPivot: 'You cannot change data inside a pivot table.' } })(), SSE.Controllers.Main || {})) }); diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json index 129eaba30..d0f1c3a9d 100644 --- a/apps/spreadsheeteditor/main/locale/en.json +++ b/apps/spreadsheeteditor/main/locale/en.json @@ -274,6 +274,7 @@ "SSE.Controllers.Main.errorKeyEncrypt": "Unknown key descriptor", "SSE.Controllers.Main.errorKeyExpire": "Key descriptor expired", "SSE.Controllers.Main.errorLockedAll": "The operation could not be done as the sheet has been locked by another user.", + "SSE.Controllers.Main.errorLockedCellPivot": "You cannot change data inside a pivot table.", "SSE.Controllers.Main.errorLockedWorksheetRename": "The sheet cannot be renamed at the moment as it is being renamed by another user", "SSE.Controllers.Main.errorMoveRange": "Cannot change part of a merged cell", "SSE.Controllers.Main.errorOpenWarning": "The length of one of the formulas in the file exceeded
the allowed number of characters and it was removed.", From bafbdf6c3f57b32f9d533dedea2c0d6f5d6b7e96 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 21 Jun 2017 12:47:22 +0300 Subject: [PATCH 005/214] [SSE] Disable filters, sort, merge, hyperlinks when in pivot table. --- .../main/app/controller/DocumentHolder.js | 9 ++++++-- .../main/app/controller/Toolbar.js | 3 +++ .../main/app/view/Toolbar.js | 23 ++++++++++--------- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index 713ae0c69..6026afb7b 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -1445,6 +1445,8 @@ define([ documentHolder.pmiInsertCells.menu.items[1].setDisabled(isApplyAutoFilter); documentHolder.pmiDeleteCells.menu.items[1].setDisabled(isApplyAutoFilter); + var inPivot = !!cellinfo.asc_getPivotTableInfo(); + _.each(documentHolder.ssMenu.items, function(item) { item.setDisabled(isCellLocked); }); @@ -1455,9 +1457,12 @@ define([ documentHolder.pmiDeleteEntire.setDisabled(isCellLocked || isTableLocked); documentHolder.pmiDeleteCells.setDisabled(isCellLocked || isTableLocked); documentHolder.pmiDeleteTable.setDisabled(isCellLocked || isTableLocked); - documentHolder.pmiFilterCells.setDisabled(isCellLocked || isTableLocked|| (filterInfo==null)); - documentHolder.pmiSortCells.setDisabled(isCellLocked || isTableLocked|| (filterInfo==null)); + documentHolder.pmiFilterCells.setDisabled(isCellLocked || isTableLocked|| (filterInfo==null) || inPivot); + documentHolder.pmiSortCells.setDisabled(isCellLocked || isTableLocked|| (filterInfo==null) || inPivot); documentHolder.pmiReapply.setDisabled(isCellLocked || isTableLocked|| (isApplyAutoFilter!==true)); + documentHolder.menuHyperlink.setDisabled(isCellLocked || inPivot); + documentHolder.menuAddHyperlink.setDisabled(isCellLocked || inPivot); + if (showMenu) this.showPopupMenu(documentHolder.ssMenu, {}, event); } else if (this.permissions.isEditDiagram && seltype == Asc.c_oAscSelectionType.RangeChartText) { if (!showMenu && !documentHolder.textInShapeMenu.isVisible()) return; diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 944350a84..fdefb84c9 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -2012,6 +2012,9 @@ define([ this._state.multiselect = info.asc_getFlags().asc_getMultiselect(); toolbar.lockToolbar(SSE.enumLock.multiselect, this._state.multiselect, { array: [toolbar.btnTableTemplate, toolbar.btnInsertHyperlink]}); + + need_disable = !!info.asc_getPivotTableInfo(); + toolbar.lockToolbar(SSE.enumLock.editPivot, need_disable, { array: [toolbar.btnMerge, toolbar.btnInsertHyperlink, toolbar.btnSetAutofilter, toolbar.btnClearAutofilter, toolbar.btnSortDown, toolbar.btnSortUp, toolbar.btnAutofilter]}); } val = info.asc_getNumFormatInfo(); diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js index 41461ee3e..0aa3852a1 100644 --- a/apps/spreadsheeteditor/main/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js @@ -61,6 +61,7 @@ define([ editCell: 'cell-editing', editFormula: 'is-formula', editText: 'is-text', + editPivot: 'is-pivot', selImage: 'sel-image', selShape: 'sel-shape', selShapeText: 'sel-shape-txt', @@ -289,21 +290,21 @@ define([ id : 'id-toolbar-btn-sort-down', cls : 'btn-toolbar', iconCls : 'btn-sort-down', - lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter] + lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter, _set.editPivot] }); me.btnSortUp = new Common.UI.Button({ id : 'id-toolbar-btn-sort-up', cls : 'btn-toolbar', iconCls : 'btn-sort-up', - lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter] + lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter, _set.editPivot] }); me.btnSetAutofilter = new Common.UI.Button({ id : 'id-toolbar-btn-setautofilter', cls : 'btn-toolbar', iconCls : 'btn-autofilter', - lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter], + lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter, _set.editPivot], enableToggle: true }); @@ -311,7 +312,7 @@ define([ id : 'id-toolbar-btn-clearfilter', cls : 'btn-toolbar', iconCls : 'btn-clear-filter', - lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleDelFilter] + lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleDelFilter, _set.editPivot] }); } else { Common.UI.Mixtbar.prototype.initialize.call(this, { @@ -493,7 +494,7 @@ define([ enableToggle: true, allowDepress: true, split : true, - lock : [_set.editCell, _set.selShape, _set.selShapeText, _set.selChart, _set.selChartText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleMerge], + lock : [_set.editCell, _set.selShape, _set.selShapeText, _set.selChart, _set.selChartText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleMerge, _set.editPivot], menu : new Common.UI.Menu({ items: [ { @@ -617,7 +618,7 @@ define([ cls : 'btn-toolbar x-huge icon-top', iconCls : 'btn-inserthyperlink', caption : me.capInsertHyperlink, - lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selImage, _set.selShape, _set.cantHyperlink, _set.multiselect, _set.lostConnect, _set.coAuth] + lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selImage, _set.selShape, _set.cantHyperlink, _set.multiselect, _set.lostConnect, _set.coAuth, _set.editPivot] }); me.btnInsertChart = new Common.UI.Button({ @@ -684,21 +685,21 @@ define([ id : 'id-toolbar-btn-sort-down', cls : 'btn-toolbar', iconCls : 'btn-sort-down', - lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter] + lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter, _set.editPivot] }); me.btnSortUp = new Common.UI.Button({ id : 'id-toolbar-btn-sort-up', cls : 'btn-toolbar', iconCls : 'btn-sort-up', - lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter] + lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter, _set.editPivot] }); me.btnSetAutofilter = new Common.UI.Button({ id : 'id-toolbar-btn-setautofilter', cls : 'btn-toolbar', iconCls : 'btn-autofilter', - lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter], + lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter, _set.editPivot], enableToggle: true }); @@ -706,7 +707,7 @@ define([ id : 'id-toolbar-btn-clearfilter', cls : 'btn-toolbar', iconCls : 'btn-clear-filter', - lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleDelFilter] + lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleDelFilter, _set.editPivot] }); me.btnTableTemplate = new Common.UI.Button({ @@ -1151,7 +1152,7 @@ define([ id : 'id-toolbar-btn-autofilter', cls : 'btn-toolbar', iconCls : 'btn-autofilter', - lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter], + lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter, _set.editPivot], menu : new Common.UI.Menu({ items : [ me.mnuitemSortAZ = new Common.UI.MenuItem({ From f237a48f0ee4b11a315817e78f4cff1034a9dded Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 23 Jun 2017 17:41:35 +0300 Subject: [PATCH 006/214] Merge branch feature/new-toolbar. --- apps/common/main/lib/controller/Plugins.js | 6 +- apps/common/main/lib/model/Plugin.js | 1 + apps/common/main/lib/view/Plugins.js | 6 +- apps/common/main/resources/less/window.less | 10 + apps/documenteditor/main/app.js | 33 +- .../main/app/controller/Main.js | 50 +- .../main/app/controller/Toolbar.js | 58 +- .../main/app/view/CustomColumnsDialog.js | 178 ++ .../main/app/view/DocumentHolder.js | 7 +- apps/documenteditor/main/app/view/Toolbar.js | 7 +- apps/documenteditor/main/app_dev.js | 33 +- apps/documenteditor/main/index.html | 12 + apps/documenteditor/main/index.html.deploy | 26 +- apps/documenteditor/main/locale/de.json | 4 +- apps/documenteditor/main/locale/en.json | 28 +- apps/documenteditor/main/locale/es.json | 27 +- apps/documenteditor/main/locale/fr.json | 4 +- apps/documenteditor/main/locale/ru.json | 16 + apps/documenteditor/main/locale/zh.json | 1611 +++++++++++++++ apps/documenteditor/mobile/app-dev.js | 33 +- apps/documenteditor/mobile/app.js | 33 +- .../mobile/app/controller/Main.js | 45 +- apps/documenteditor/mobile/index.html | 12 + apps/documenteditor/mobile/index.html.deploy | 24 + apps/documenteditor/mobile/locale/en.json | 16 + apps/documenteditor/mobile/locale/ru.json | 16 + apps/documenteditor/mobile/locale/zh.json | 361 ++++ apps/presentationeditor/main/app.js | 33 +- .../main/app/controller/Main.js | 51 +- apps/presentationeditor/main/app_dev.js | 33 +- apps/presentationeditor/main/index.html | 12 + .../presentationeditor/main/index.html.deploy | 24 +- apps/presentationeditor/main/locale/de.json | 4 +- apps/presentationeditor/main/locale/en.json | 15 +- apps/presentationeditor/main/locale/es.json | 958 ++++----- apps/presentationeditor/main/locale/fr.json | 4 +- apps/presentationeditor/main/locale/zh.json | 1342 +++++++++++++ apps/presentationeditor/mobile/app-dev.js | 33 +- apps/presentationeditor/mobile/app.js | 33 +- .../mobile/app/controller/Main.js | 48 +- .../mobile/app/template/Settings.template | 4 +- apps/presentationeditor/mobile/index.html | 12 + .../mobile/index.html.deploy | 24 + apps/presentationeditor/mobile/locale/en.json | 12 + apps/presentationeditor/mobile/locale/zh.json | 432 ++++ .../main/app/view/FormatSettingsDialog.js | 3 +- .../main/app/view/SetValueDialog.js | 1 + apps/spreadsheeteditor/main/index.html | 12 + apps/spreadsheeteditor/main/index.html.deploy | 24 +- apps/spreadsheeteditor/main/locale/de.json | 1 + apps/spreadsheeteditor/main/locale/es.json | 974 ++++----- apps/spreadsheeteditor/main/locale/fr.json | 21 +- apps/spreadsheeteditor/main/locale/ru.json | 9 + apps/spreadsheeteditor/main/locale/zh.json | 1739 +++++++++++++++++ apps/spreadsheeteditor/mobile/app-dev.js | 33 +- apps/spreadsheeteditor/mobile/app.js | 33 +- .../mobile/app/controller/Main.js | 62 +- .../mobile/app/controller/add/AddChart.js | 7 - apps/spreadsheeteditor/mobile/index.html | 12 + .../mobile/index.html.deploy | 24 + apps/spreadsheeteditor/mobile/locale/en.json | 22 + apps/spreadsheeteditor/mobile/locale/ru.json | 9 + apps/spreadsheeteditor/mobile/locale/zh.json | 464 +++++ 63 files changed, 7777 insertions(+), 1404 deletions(-) create mode 100644 apps/documenteditor/main/app/view/CustomColumnsDialog.js create mode 100644 apps/documenteditor/main/locale/zh.json create mode 100644 apps/documenteditor/mobile/locale/zh.json create mode 100644 apps/presentationeditor/main/locale/zh.json create mode 100644 apps/presentationeditor/mobile/locale/zh.json create mode 100644 apps/spreadsheeteditor/main/locale/zh.json create mode 100644 apps/spreadsheeteditor/mobile/locale/zh.json diff --git a/apps/common/main/lib/controller/Plugins.js b/apps/common/main/lib/controller/Plugins.js index 4bcb79ed4..6bd81688b 100644 --- a/apps/common/main/lib/controller/Plugins.js +++ b/apps/common/main/lib/controller/Plugins.js @@ -148,6 +148,7 @@ define([ variation.set_Url(itemVar.get('url')); variation.set_Icons(itemVar.get('icons')); variation.set_Visual(itemVar.get('isVisual')); + variation.set_CustomWindow(itemVar.get('isCustomWindow')); variation.set_Viewer(itemVar.get('isViewer')); variation.set_EditorsSupport(itemVar.get('EditorsSupport')); variation.set_Modal(itemVar.get('isModal')); @@ -248,6 +249,7 @@ define([ this.api.asc_pluginButtonClick(-1); } else { var me = this, + isCustomWindow = variation.get_CustomWindow(), arrBtns = variation.get_Buttons(), newBtns = {}, size = variation.get_Size(); @@ -260,11 +262,13 @@ define([ } me.pluginDlg = new Common.Views.PluginDlg({ + cls: isCustomWindow ? 'plain' : '', + header: !isCustomWindow, title: plugin.get_Name(), width: size[0], // inner width height: size[1], // inner height url: url, - buttons: newBtns, + buttons: isCustomWindow ? undefined : newBtns, toolcallback: _.bind(this.onToolClose, this) }); me.pluginDlg.on('render:after', function(obj){ diff --git a/apps/common/main/lib/model/Plugin.js b/apps/common/main/lib/model/Plugin.js index 3612817be..0f5ea93dc 100644 --- a/apps/common/main/lib/model/Plugin.js +++ b/apps/common/main/lib/model/Plugin.js @@ -58,6 +58,7 @@ define([ isViewer: false, EditorsSupport: ["word", "cell", "slide"], isVisual: false, + isCustomWindow: false, isModal: false, isInsideMode: false, initDataType: 0, diff --git a/apps/common/main/lib/view/Plugins.js b/apps/common/main/lib/view/Plugins.js index 803ab6aaa..3ce4babd8 100644 --- a/apps/common/main/lib/view/Plugins.js +++ b/apps/common/main/lib/view/Plugins.js @@ -290,21 +290,22 @@ define([ initialize : function(options) { var _options = {}; _.extend(_options, { - cls: 'advanced-settings-dlg', header: true, enableKeyEvents: false }, options); var header_footer = (_options.buttons && _.size(_options.buttons)>0) ? 85 : 34; + if (!_options.header) header_footer -= 34; _options.width = (Common.Utils.innerWidth()-_options.width)<0 ? Common.Utils.innerWidth(): _options.width, _options.height += header_footer; _options.height = (Common.Utils.innerHeight()-_options.height)<0 ? Common.Utils.innerHeight(): _options.height; + _options.cls += ' advanced-settings-dlg'; this.template = [ '
', '
', '
', - '<% if (_.size(buttons) > 0) { %>', + '<% if ((typeof buttons !== "undefined") && _.size(buttons) > 0) { %>', '
', '