diff --git a/apps/documenteditor/mobile/app/controller/DocumentHolder.js b/apps/documenteditor/mobile/app/controller/DocumentHolder.js
index 85189d4cc..4f99eea58 100644
--- a/apps/documenteditor/mobile/app/controller/DocumentHolder.js
+++ b/apps/documenteditor/mobile/app/controller/DocumentHolder.js
@@ -121,31 +121,73 @@ define([
var res = me.api.Cut();
if (!res) {
_view.hideMenu();
- uiApp.modal({
- title: me.textCopyCutPasteActions,
- text : me.errorCopyCutPaste,
- buttons: [{text: 'OK'}]
- });
+ if (!Common.localStorage.getBool("de-hide-copy-cut-paste-warning")) {
+ uiApp.modal({
+ title: me.textCopyCutPasteActions,
+ text: me.errorCopyCutPaste,
+ afterText: '',
+ buttons: [{
+ text: 'OK',
+ onClick: function () {
+ var dontshow = $('input[name="checkbox-show-cut"]').prop('checked');
+ if (dontshow) Common.localStorage.setItem("de-hide-copy-cut-paste-warning", 1);
+ }
+ }]
+ });
+ }
}
} else if ('copy' == eventName) {
var res = me.api.Copy();
if (!res) {
_view.hideMenu();
- uiApp.modal({
- title: me.textCopyCutPasteActions,
- text : me.errorCopyCutPaste,
- buttons: [{text: 'OK'}]
- });
+ if (!Common.localStorage.getBool("de-hide-copy-cut-paste-warning")) {
+ uiApp.modal({
+ title: me.textCopyCutPasteActions,
+ text: me.errorCopyCutPaste,
+ afterText: '',
+ buttons: [{
+ text: 'OK',
+ onClick: function () {
+ var dontshow = $('input[name="checkbox-show-copy"]').prop('checked');
+ if (dontshow) Common.localStorage.setItem("de-hide-copy-cut-paste-warning", 1);
+ }
+ }]
+ });
+ }
}
} else if ('paste' == eventName) {
var res = me.api.Paste();
if (!res) {
_view.hideMenu();
- uiApp.modal({
- title: me.textCopyCutPasteActions,
- text: me.errorCopyCutPaste,
- buttons: [{text: 'OK'}]
- });
+ if (!Common.localStorage.getBool("de-hide-copy-cut-paste-warning")) {
+ uiApp.modal({
+ title: me.textCopyCutPasteActions,
+ text: me.errorCopyCutPaste,
+ afterText: '',
+ buttons: [{
+ text: 'OK',
+ onClick: function () {
+ var dontshow = $('input[name="checkbox-show-paste"]').prop('checked');
+ if (dontshow) Common.localStorage.setItem("de-hide-copy-cut-paste-warning", 1);
+ }
+ }]
+ });
+ }
}
} else if ('merge' == eventName) {
me.api.MergeCells();
@@ -585,7 +627,8 @@ define([
menuDeleteTable: 'Delete Table',
menuReviewChange: 'Review Change',
textCopyCutPasteActions: 'Copy, Cut and Paste Actions',
- errorCopyCutPaste: 'Copy, cut and paste actions using the context menu will be performed within the current file only. You cannot copy or paste to or from other applications.'
+ errorCopyCutPaste: 'Copy, cut and paste actions using the context menu will be performed within the current file only.',
+ textDoNotShowAgain: 'Do not show again'
}
})(), DE.Controllers.DocumentHolder || {}))
});
\ No newline at end of file
diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json
index c823d9ccc..d7e83e9aa 100644
--- a/apps/documenteditor/mobile/locale/en.json
+++ b/apps/documenteditor/mobile/locale/en.json
@@ -90,7 +90,8 @@
"DE.Controllers.AddTable.textColumns": "Columns",
"DE.Controllers.AddTable.textRows": "Rows",
"DE.Controllers.AddTable.textTableSize": "Table Size",
- "DE.Controllers.DocumentHolder.errorCopyCutPaste": "Copy, cut and paste actions using the context menu will be performed within the current file only. You cannot copy or paste to or from other applications.",
+ "DE.Controllers.DocumentHolder.errorCopyCutPaste": "Copy, cut and paste actions using the context menu will be performed within the current file only.",
+ "DE.Controllers.DocumentHolder.textDoNotShowAgain": "Do not show again",
"DE.Controllers.DocumentHolder.menuAddLink": "Add Link",
"DE.Controllers.DocumentHolder.menuCopy": "Copy",
"DE.Controllers.DocumentHolder.menuCut": "Cut",
diff --git a/apps/presentationeditor/mobile/app/controller/DocumentHolder.js b/apps/presentationeditor/mobile/app/controller/DocumentHolder.js
index 9f629e27d..720997653 100644
--- a/apps/presentationeditor/mobile/app/controller/DocumentHolder.js
+++ b/apps/presentationeditor/mobile/app/controller/DocumentHolder.js
@@ -107,31 +107,73 @@ define([
var res = me.api.Cut();
if (!res) {
_view.hideMenu();
- uiApp.modal({
- title: me.textCopyCutPasteActions,
- text : me.errorCopyCutPaste,
- buttons: [{text: 'OK'}]
- });
+ if (!Common.localStorage.getBool("pe-hide-copy-cut-paste-warning")) {
+ uiApp.modal({
+ title: me.textCopyCutPasteActions,
+ text: me.errorCopyCutPaste,
+ afterText: '',
+ buttons: [{
+ text: 'OK',
+ onClick: function () {
+ var dontshow = $('input[name="checkbox-show-cut"]').prop('checked');
+ if (dontshow) Common.localStorage.setItem("pe-hide-copy-cut-paste-warning", 1);
+ }
+ }]
+ });
+ }
}
} else if ('copy' == eventName) {
var res = me.api.Copy();
if (!res) {
_view.hideMenu();
- uiApp.modal({
- title: me.textCopyCutPasteActions,
- text : me.errorCopyCutPaste,
- buttons: [{text: 'OK'}]
- });
+ if (!Common.localStorage.getBool("pe-hide-copy-cut-paste-warning")) {
+ uiApp.modal({
+ title: me.textCopyCutPasteActions,
+ text: me.errorCopyCutPaste,
+ afterText: '',
+ buttons: [{
+ text: 'OK',
+ onClick: function () {
+ var dontshow = $('input[name="checkbox-show-copy"]').prop('checked');
+ if (dontshow) Common.localStorage.setItem("pe-hide-copy-cut-paste-warning", 1);
+ }
+ }]
+ });
+ }
}
} else if ('paste' == eventName) {
var res = me.api.Paste();
if (!res) {
_view.hideMenu();
- uiApp.modal({
- title: me.textCopyCutPasteActions,
- text: me.errorCopyCutPaste,
- buttons: [{text: 'OK'}]
- });
+ if (!Common.localStorage.getBool("pe-hide-copy-cut-paste-warning")) {
+ uiApp.modal({
+ title: me.textCopyCutPasteActions,
+ text: me.errorCopyCutPaste,
+ afterText: '',
+ buttons: [{
+ text: 'OK',
+ onClick: function () {
+ var dontshow = $('input[name="checkbox-show-paste"]').prop('checked');
+ if (dontshow) Common.localStorage.setItem("pe-hide-copy-cut-paste-warning", 1);
+ }
+ }]
+ });
+ }
}
} else if ('delete' == eventName) {
me.api.asc_Remove();
@@ -355,7 +397,8 @@ define([
menuMore: 'More',
sheetCancel: 'Cancel',
textCopyCutPasteActions: 'Copy, Cut and Paste Actions',
- errorCopyCutPaste: 'Copy, cut and paste actions using the context menu will be performed within the current file only. You cannot copy or paste to or from other applications.'
+ errorCopyCutPaste: 'Copy, cut and paste actions using the context menu will be performed within the current file only.',
+ textDoNotShowAgain: 'Do not show again'
}
})(), PE.Controllers.DocumentHolder || {}))
});
\ No newline at end of file
diff --git a/apps/presentationeditor/mobile/locale/en.json b/apps/presentationeditor/mobile/locale/en.json
index b1a031f06..ea16c8286 100644
--- a/apps/presentationeditor/mobile/locale/en.json
+++ b/apps/presentationeditor/mobile/locale/en.json
@@ -30,7 +30,8 @@
"PE.Controllers.AddTable.textColumns": "Columns",
"PE.Controllers.AddTable.textRows": "Rows",
"PE.Controllers.AddTable.textTableSize": "Table Size",
- "PE.Controllers.DocumentHolder.errorCopyCutPaste": "Copy, cut and paste actions using the context menu will be performed within the current file only. You cannot copy or paste to or from other applications.",
+ "PE.Controllers.DocumentHolder.errorCopyCutPaste": "Copy, cut and paste actions using the context menu will be performed within the current file only.",
+ "PE.Controllers.DocumentHolder.textDoNotShowAgain": "Do not show again",
"PE.Controllers.DocumentHolder.menuAddLink": "Add Link",
"PE.Controllers.DocumentHolder.menuCopy": "Copy",
"PE.Controllers.DocumentHolder.menuCut": "Cut",
diff --git a/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js
index 6b6979587..95ce3fea7 100644
--- a/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js
+++ b/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js
@@ -113,33 +113,74 @@ define([
var res = me.api.asc_Cut();
if (!res) {
me.view.hideMenu();
- uiApp.modal({
- title: me.textCopyCutPasteActions,
- text : me.errorCopyCutPaste,
- buttons: [{text: 'OK'}]
- });
+ if (!Common.localStorage.getBool("sse-hide-copy-cut-paste-warning")) {
+ uiApp.modal({
+ title: me.textCopyCutPasteActions,
+ text: me.errorCopyCutPaste,
+ afterText: '',
+ buttons: [{
+ text: 'OK',
+ onClick: function () {
+ var dontshow = $('input[name="checkbox-show-cut"]').prop('checked');
+ if (dontshow) Common.localStorage.setItem("sse-hide-copy-cut-paste-warning", 1);
+ }
+ }]
+ });
+ }
}
break;
case 'copy':
var res = me.api.asc_Copy();
if (!res) {
me.view.hideMenu();
- uiApp.modal({
- title: me.textCopyCutPasteActions,
- text : me.errorCopyCutPaste,
- buttons: [{text: 'OK'}]
- });
+ if (!Common.localStorage.getBool("sse-hide-copy-cut-paste-warning")) {
+ uiApp.modal({
+ title: me.textCopyCutPasteActions,
+ afterText: '',
+ buttons: [{
+ text: 'OK',
+ onClick: function () {
+ var dontshow = $('input[name="checkbox-show-copy"]').prop('checked');
+ if (dontshow) Common.localStorage.setItem("sse-hide-copy-cut-paste-warning", 1);
+ }
+ }]
+ });
+ }
}
break;
case 'paste':
var res = me.api.asc_Paste();
if (!res) {
me.view.hideMenu();
- uiApp.modal({
- title: me.textCopyCutPasteActions,
- text: me.errorCopyCutPaste,
- buttons: [{text: 'OK'}]
- });
+ if (!Common.localStorage.getBool("sse-hide-copy-cut-paste-warning")) {
+ uiApp.modal({
+ title: me.textCopyCutPasteActions,
+ text: me.errorCopyCutPaste,
+ afterText: '',
+ buttons: [{
+ text: 'OK',
+ onClick: function () {
+ var dontshow = $('input[name="checkbox-show-paste"]').prop('checked');
+ if (dontshow) Common.localStorage.setItem("sse-hide-copy-cut-paste-warning", 1);
+ }
+ }]
+ });
+ }
}
break;
case 'del': me.api.asc_emptyCells(Asc.c_oAscCleanOptions.All); break;
@@ -422,7 +463,8 @@ define([
menuFreezePanes: 'Freeze Panes',
menuUnfreezePanes: 'Unfreeze Panes',
textCopyCutPasteActions: 'Copy, Cut and Paste Actions',
- errorCopyCutPaste: 'Copy, cut and paste actions using the context menu will be performed within the current file only. You cannot copy or paste to or from other applications.'
+ errorCopyCutPaste: 'Copy, cut and paste actions using the context menu will be performed within the current file only.',
+ textDoNotShowAgain: 'Do not show again'
}
})(), SSE.Controllers.DocumentHolder || {}))
});
\ No newline at end of file
diff --git a/apps/spreadsheeteditor/mobile/locale/en.json b/apps/spreadsheeteditor/mobile/locale/en.json
index b3dc53d82..44bd8993a 100644
--- a/apps/spreadsheeteditor/mobile/locale/en.json
+++ b/apps/spreadsheeteditor/mobile/locale/en.json
@@ -23,7 +23,8 @@
"SSE.Controllers.AddLink.txtNotUrl": "This field should be a URL in the format 'http://www.example.com'",
"SSE.Controllers.AddOther.textEmptyImgUrl": "You need to specify image URL.",
"SSE.Controllers.AddOther.txtNotUrl": "This field should be a URL in the format 'http://www.example.com'",
- "SSE.Controllers.DocumentHolder.errorCopyCutPaste": "Copy, cut and paste actions using the context menu will be performed within the current file only. You cannot copy or paste to or from other applications.",
+ "SSE.Controllers.DocumentHolder.errorCopyCutPaste": "Copy, cut and paste actions using the context menu will be performed within the current file only.",
+ "SSE.Controllers.DocumentHolder.textDoNotShowAgain": "Do not show again",
"SSE.Controllers.DocumentHolder.menuAddLink": "Add Link",
"SSE.Controllers.DocumentHolder.menuCell": "Cell",
"SSE.Controllers.DocumentHolder.menuCopy": "Copy",