diff --git a/apps/common/main/lib/view/OpenDialog.js b/apps/common/main/lib/view/OpenDialog.js index 659d4b7df..6123d15f5 100644 --- a/apps/common/main/lib/view/OpenDialog.js +++ b/apps/common/main/lib/view/OpenDialog.js @@ -68,6 +68,7 @@ define([ preview : options.preview, warning : options.warning, codepages : options.codepages, + warningMsg : options.warningMsg, width : width, height : height, header : true, @@ -85,7 +86,7 @@ define([ '<% if (warning) { %>', '
', '
', - '
' + t.txtProtected+ '
', + '
' + (typeof _options.warningMsg=='string' ? _options.warningMsg : t.txtProtected) + '
', '', '
', '
', diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 04af79560..b928b0619 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -851,7 +851,7 @@ define([ } } else { $('.comment-resolve, .comment-menu, .add-reply, .reply-menu').removeClass('disabled'); - if (this.showComments.length > 1) { + if (this.showComments && this.showComments.length > 1) { $('.prev-comment, .next-comment').removeClass('disabled'); } } @@ -863,7 +863,7 @@ define([ $('.comment-menu').single('click', _.buffered(this.initMenuComments, 100, this)); $('.reply-menu').single('click', _.buffered(this.initReplyMenu, 100, this)); $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this, false)); - if (this.showComments.length === 1) { + if (this.showComments && this.showComments.length === 1) { $('.prev-comment, .next-comment').addClass('disabled'); } }, @@ -921,7 +921,7 @@ define([ $('.reply-menu').single('click', _.buffered(me.initReplyMenu, 100, me)); $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me, false)); - if (me.showComments.length === 1) { + if (me.showComments && me.showComments.length === 1) { $('.prev-comment, .next-comment').addClass('disabled'); } @@ -998,7 +998,7 @@ define([ }, onViewPrevComment: function() { - if (this.showComments.length > 0) { + if (this.showComments && this.showComments.length > 0) { if (this.indexCurrentComment - 1 < 0) { this.indexCurrentComment = this.showComments.length - 1; } else { @@ -1015,7 +1015,7 @@ define([ }, onViewNextComment: function() { - if (this.showComments.length > 0) { + if (this.showComments && this.showComments.length > 0) { if (this.indexCurrentComment + 1 === this.showComments.length) { this.indexCurrentComment = 0; } else { diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 0aafc7a84..987df7258 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -2088,6 +2088,7 @@ define([ closeFile: me.appOptions.canRequestClose, type: Common.Utils.importTextType.DRM, warning: !(me.appOptions.isDesktopApp && me.appOptions.isOffline), + warningMsg: advOptions, validatePwd: !!me._state.isDRM, handler: function (result, value) { me.isShowOpenDialog = false; diff --git a/apps/documenteditor/mobile/app/controller/Main.js b/apps/documenteditor/mobile/app/controller/Main.js index 51cb46f04..2f988bb44 100644 --- a/apps/documenteditor/mobile/app/controller/Main.js +++ b/apps/documenteditor/mobile/app/controller/Main.js @@ -1329,7 +1329,7 @@ define([ me._state.openDlg = uiApp.modal({ title: me.advDRMOptions, - text: me.txtProtected, + text: (typeof advOptions=='string' ? advOptions : me.txtProtected), afterText: '
', buttons: buttons }); diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index d8c228a71..27390ccb0 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -1884,6 +1884,7 @@ define([ closeFile: me.appOptions.canRequestClose, type: Common.Utils.importTextType.DRM, warning: !(me.appOptions.isDesktopApp && me.appOptions.isOffline), + warningMsg: advOptions, validatePwd: !!me._state.isDRM, handler: function (result, value) { me.isShowOpenDialog = false; diff --git a/apps/presentationeditor/mobile/app/controller/Main.js b/apps/presentationeditor/mobile/app/controller/Main.js index 54dd18f5c..4e37dc86a 100644 --- a/apps/presentationeditor/mobile/app/controller/Main.js +++ b/apps/presentationeditor/mobile/app/controller/Main.js @@ -1218,7 +1218,7 @@ define([ me._state.openDlg = uiApp.modal({ title: me.advDRMOptions, - text: me.txtProtected, + text: (typeof advOptions=='string' ? advOptions : me.txtProtected), afterText: '
', buttons: buttons }); diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 860646e1e..9ba061b0c 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -1826,6 +1826,7 @@ define([ closeFile: me.appOptions.canRequestClose, type: Common.Utils.importTextType.DRM, warning: !(me.appOptions.isDesktopApp && me.appOptions.isOffline), + warningMsg: advOptions, validatePwd: !!me._state.isDRM, handler: function (result, value) { me.isShowOpenDialog = false; diff --git a/apps/spreadsheeteditor/main/locale/de.json b/apps/spreadsheeteditor/main/locale/de.json index ee944a603..ec7695b36 100644 --- a/apps/spreadsheeteditor/main/locale/de.json +++ b/apps/spreadsheeteditor/main/locale/de.json @@ -1223,7 +1223,7 @@ "SSE.Controllers.Toolbar.warnLongOperation": "Die Operation, die Sie durchführen möchten, kann viel Zeit in Anspruch nehmen.
Soll sie fortgesetzt werden?", "SSE.Controllers.Toolbar.warnMergeLostData": "Nur die Daten aus der oberen linken Zelle bleiben nach der Vereinigung.
Möchten Sie wirklich fortsetzen?", "SSE.Controllers.Viewport.textFreezePanes": "Fenster fixieren", - "SSE.Controllers.Viewport.textFreezePanesShadow:": "Schatten für fixierte Bereiche anzeigen", + "SSE.Controllers.Viewport.textFreezePanesShadow": "Schatten für fixierte Bereiche anzeigen", "SSE.Controllers.Viewport.textHideFBar": "Formelleiste verbergen", "SSE.Controllers.Viewport.textHideGridlines": "Gitternetzlinien verbergen", "SSE.Controllers.Viewport.textHideHeadings": "Überschriften verbergen", diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json index 217162d29..8edbe4f4e 100644 --- a/apps/spreadsheeteditor/main/locale/en.json +++ b/apps/spreadsheeteditor/main/locale/en.json @@ -1224,7 +1224,7 @@ "SSE.Controllers.Toolbar.warnLongOperation": "The operation you are about to perform might take rather much time to complete.
Are you sure you want to continue?", "SSE.Controllers.Toolbar.warnMergeLostData": "Only the data from the upper-left cell will remain in the merged cell.
Are you sure you want to continue?", "SSE.Controllers.Viewport.textFreezePanes": "Freeze Panes", - "SSE.Controllers.Viewport.textFreezePanesShadow:": "Show Frozen Panes Shadow", + "SSE.Controllers.Viewport.textFreezePanesShadow": "Show Frozen Panes Shadow", "SSE.Controllers.Viewport.textHideFBar": "Hide Formula Bar", "SSE.Controllers.Viewport.textHideGridlines": "Hide Gridlines", "SSE.Controllers.Viewport.textHideHeadings": "Hide Headings", diff --git a/apps/spreadsheeteditor/main/locale/es.json b/apps/spreadsheeteditor/main/locale/es.json index 2725d252f..c49edf5ec 100644 --- a/apps/spreadsheeteditor/main/locale/es.json +++ b/apps/spreadsheeteditor/main/locale/es.json @@ -1223,7 +1223,7 @@ "SSE.Controllers.Toolbar.warnLongOperation": "La operación que está a punto de realizar podría tomar mucho tiempo para completar.
¿Está seguro que desea continuar?", "SSE.Controllers.Toolbar.warnMergeLostData": "En la celda unida permanecerán sólo los datos de la celda de la esquina superior izquierda.
Está seguro de que quiere continuar?", "SSE.Controllers.Viewport.textFreezePanes": "Inmovilizar paneles", - "SSE.Controllers.Viewport.textFreezePanesShadow:": "Mostrar la sombra de paneles inmovilizados", + "SSE.Controllers.Viewport.textFreezePanesShadow": "Mostrar la sombra de paneles inmovilizados", "SSE.Controllers.Viewport.textHideFBar": "Ocultar barra de fórmulas", "SSE.Controllers.Viewport.textHideGridlines": "Ocultar cuadrícula", "SSE.Controllers.Viewport.textHideHeadings": "Ocultar títulos", diff --git a/apps/spreadsheeteditor/main/locale/fr.json b/apps/spreadsheeteditor/main/locale/fr.json index 5756fb10a..f8a4033f1 100644 --- a/apps/spreadsheeteditor/main/locale/fr.json +++ b/apps/spreadsheeteditor/main/locale/fr.json @@ -1223,7 +1223,7 @@ "SSE.Controllers.Toolbar.warnLongOperation": "L'opération que vous êtes sur le point d'effectuer peut prendre beaucoup de temps.
Êtes-vous sûr de vouloir continuer ?", "SSE.Controllers.Toolbar.warnMergeLostData": "Seulement les données de la cellule supérieure gauche seront conservées dans la cellule fusionnée.
Êtes-vous sûr de vouloir continuer ?", "SSE.Controllers.Viewport.textFreezePanes": "Verrouiller les volets", - "SSE.Controllers.Viewport.textFreezePanesShadow:": "Afficher les ombres des volets verrouillés", + "SSE.Controllers.Viewport.textFreezePanesShadow": "Afficher les ombres des volets verrouillés", "SSE.Controllers.Viewport.textHideFBar": "Masquer la barre de formule", "SSE.Controllers.Viewport.textHideGridlines": "Masquer le quadrillage", "SSE.Controllers.Viewport.textHideHeadings": "Masquer les en-têtes", diff --git a/apps/spreadsheeteditor/main/locale/ja.json b/apps/spreadsheeteditor/main/locale/ja.json index 36cd4b844..0319e4078 100644 --- a/apps/spreadsheeteditor/main/locale/ja.json +++ b/apps/spreadsheeteditor/main/locale/ja.json @@ -1223,7 +1223,7 @@ "SSE.Controllers.Toolbar.warnLongOperation": "実行しようとしている操作は、完了するまでにかなり時間がかかる可能性があります。
続行しますか?", "SSE.Controllers.Toolbar.warnMergeLostData": "マージされたセルに左上のセルからのデータのみが残ります。
続行してもよろしいです?", "SSE.Controllers.Viewport.textFreezePanes": "ウィンドウ枠の固定", - "SSE.Controllers.Viewport.textFreezePanesShadow:": "固定されたウィンドウ枠の影を表示する", + "SSE.Controllers.Viewport.textFreezePanesShadow": "固定されたウィンドウ枠の影を表示する", "SSE.Controllers.Viewport.textHideFBar": "数式バーを表示しない", "SSE.Controllers.Viewport.textHideGridlines": "枠線を非表示にする", "SSE.Controllers.Viewport.textHideHeadings": "見出しを表示しない", diff --git a/apps/spreadsheeteditor/main/locale/nl.json b/apps/spreadsheeteditor/main/locale/nl.json index 0bda03c37..38271aebf 100644 --- a/apps/spreadsheeteditor/main/locale/nl.json +++ b/apps/spreadsheeteditor/main/locale/nl.json @@ -1221,7 +1221,7 @@ "SSE.Controllers.Toolbar.warnLongOperation": "De bewerking die u gaat uitvoeren, kan nogal veel tijd in beslag nemen.
Wilt u doorgaan?", "SSE.Controllers.Toolbar.warnMergeLostData": "Alleen de gegevens in de cel linksboven blijven behouden in de samengevoegde cel.
Wilt u doorgaan?", "SSE.Controllers.Viewport.textFreezePanes": "Deelvensters blokkeren", - "SSE.Controllers.Viewport.textFreezePanesShadow:": "Schaduw van geblokkeerde deelvensters weergeven", + "SSE.Controllers.Viewport.textFreezePanesShadow": "Schaduw van geblokkeerde deelvensters weergeven", "SSE.Controllers.Viewport.textHideFBar": "Formulebalk verbergen", "SSE.Controllers.Viewport.textHideGridlines": "Rasterlijnen verbergen", "SSE.Controllers.Viewport.textHideHeadings": "Koppen verbergen", diff --git a/apps/spreadsheeteditor/main/locale/pt.json b/apps/spreadsheeteditor/main/locale/pt.json index b77321912..7df354539 100644 --- a/apps/spreadsheeteditor/main/locale/pt.json +++ b/apps/spreadsheeteditor/main/locale/pt.json @@ -1223,7 +1223,7 @@ "SSE.Controllers.Toolbar.warnLongOperation": "A operação que você está prestes a realizar pode levar muito tempo para concluir.
Você tem certeza de que deseja continuar?", "SSE.Controllers.Toolbar.warnMergeLostData": "Apenas os dados da célula superior esquerda permanecerá na célula mesclada.
Você tem certeza de que deseja continuar? ", "SSE.Controllers.Viewport.textFreezePanes": "Congelar painéis", - "SSE.Controllers.Viewport.textFreezePanesShadow:": "Mostrar sombra congelada dos painéis", + "SSE.Controllers.Viewport.textFreezePanesShadow": "Mostrar sombra congelada dos painéis", "SSE.Controllers.Viewport.textHideFBar": "Ocultar barra de fórmulas", "SSE.Controllers.Viewport.textHideGridlines": "Ocultar linhas de grade", "SSE.Controllers.Viewport.textHideHeadings": "Ocultar títulos", diff --git a/apps/spreadsheeteditor/main/locale/ru.json b/apps/spreadsheeteditor/main/locale/ru.json index 470258461..47d39fe14 100644 --- a/apps/spreadsheeteditor/main/locale/ru.json +++ b/apps/spreadsheeteditor/main/locale/ru.json @@ -1224,7 +1224,7 @@ "SSE.Controllers.Toolbar.warnLongOperation": "Для завершения операции, которую вы собираетесь выполнить, может потребоваться довольно много времени.
Вы действительно хотите продолжить?", "SSE.Controllers.Toolbar.warnMergeLostData": "В объединенной ячейке останутся только данные из левой верхней ячейки.
Вы действительно хотите продолжить?", "SSE.Controllers.Viewport.textFreezePanes": "Закрепить области", - "SSE.Controllers.Viewport.textFreezePanesShadow:": "Показывать тень для закрепленных областей", + "SSE.Controllers.Viewport.textFreezePanesShadow": "Показывать тень для закрепленных областей", "SSE.Controllers.Viewport.textHideFBar": "Скрыть строку формул", "SSE.Controllers.Viewport.textHideGridlines": "Скрыть линии сетки", "SSE.Controllers.Viewport.textHideHeadings": "Скрыть заголовки", diff --git a/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js index 85d811549..d2f07129b 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js @@ -237,7 +237,12 @@ define([ break; case 'viewcomment': me.view.hideMenu(); - SSE.getController('Common.Controllers.Collaboration').showCommentModal(); + var cellinfo = this.api.asc_getCellInfo(), + comments = cellinfo.asc_getComments(); + if (comments.length) { + SSE.getController('Common.Controllers.Collaboration').apiShowComments(comments[0].asc_getId()); + SSE.getController('Common.Controllers.Collaboration').showCommentModal(); + } break; case 'addcomment': me.view.hideMenu(); @@ -248,7 +253,7 @@ define([ if ('showActionSheet' == event && _actionSheets.length > 0) { _.delay(function () { _.each(_actionSheets, function (action) { - action.text = action.caption + action.text = action.caption; action.onClick = function () { me.onContextMenuClick(null, action.event) } diff --git a/apps/spreadsheeteditor/mobile/app/controller/Main.js b/apps/spreadsheeteditor/mobile/app/controller/Main.js index d57e09c86..476818674 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Main.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Main.js @@ -1425,7 +1425,7 @@ define([ me._state.openDlg = uiApp.modal({ title: me.advDRMOptions, - text: me.txtProtected, + text: (typeof advOptions=='string' ? advOptions : me.txtProtected), afterText: '
', buttons: buttons });