diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 0c1043fd5..28a4cdb25 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -191,7 +191,6 @@ define([ this.api.asc_registerCallback('asc_onPrintUrl', _.bind(this.onPrintUrl, this)); this.api.asc_registerCallback('asc_onMeta', _.bind(this.onMeta, this)); this.api.asc_registerCallback('asc_onSpellCheckInit', _.bind(this.loadLanguages, this)); - this.api.asc_registerCallback('asc_onLicenseError', _.bind(this.onPaidFeatureError, this)); Common.NotificationCenter.on('api:disconnect', _.bind(this.onCoAuthoringDisconnect, this)); Common.NotificationCenter.on('goback', _.bind(this.goBack, this)); @@ -1088,26 +1087,6 @@ define([ } }, - onPaidFeatureError: function() { - var buttons = [], primary, - mail = (this.appOptions.canBranding) ? ((this.editorConfig && this.editorConfig.customization && this.editorConfig.customization.customer) ? this.editorConfig.customization.customer.mail : '') : 'sales@onlyoffice.com'; - if (mail.length>0) { - buttons.push({value: 'contact', caption: this.textContactUs}); - primary = 'contact'; - } - buttons.push({value: 'close', caption: this.textClose}); - Common.UI.info({ - title: this.textPaidFeature, - msg : this.textLicencePaidFeature, - buttons: buttons, - primary: primary, - callback: function(btn) { - if (btn == 'contact') - window.open('mailto:'+mail, "_blank"); - } - }); - }, - onOpenDocument: function(progress) { var elem = document.getElementById('loadmask-text'); var proc = (progress.asc_getCurrentFont() + progress.asc_getCurrentImage())/(progress.asc_getFontsCount() + progress.asc_getImagesCount()); @@ -2381,7 +2360,6 @@ define([ errorDataEncrypted: 'Encrypted changes have been received, they cannot be deciphered.', textClose: 'Close', textPaidFeature: 'Paid feature', - textLicencePaidFeature: 'The feature you are trying to use is available for additional payment.
If you need it, please contact Sales Department', scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.', errorEditingSaveas: 'An error occurred during the work with the document.
Use the \'Save as...\' option to save the file backup copy to your computer hard drive.', errorEditingDownloadas: 'An error occurred during the work with the document.
Use the \'Download as...\' option to save the file backup copy to your computer hard drive.', diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json index 01aca3261..afb7ae85c 100644 --- a/apps/documenteditor/main/locale/en.json +++ b/apps/documenteditor/main/locale/en.json @@ -401,7 +401,7 @@ "DE.Controllers.Main.textCloseTip": "Click to close the tip", "DE.Controllers.Main.textContactUs": "Contact sales", "DE.Controllers.Main.textCustomLoader": "Please note that according to the terms of the license you are not entitled to change the loader.
Please contact our Sales Department to get a quote.", - "DE.Controllers.Main.textLicencePaidFeature": "The feature you are trying to use is available for extended license.
If you need it, please contact Sales Department", + "del_DE.Controllers.Main.textLicencePaidFeature": "The feature you are trying to use is available for extended license.
If you need it, please contact Sales Department", "DE.Controllers.Main.textLoadingDocument": "Loading document", "DE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE connection limitation", "DE.Controllers.Main.textPaidFeature": "Paid feature", diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index ffc4a2955..328aa91e6 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -178,7 +178,6 @@ define([ this.api.asc_registerCallback('asc_onMeta', _.bind(this.onMeta, this)); this.api.asc_registerCallback('asc_onAdvancedOptions', _.bind(this.onAdvancedOptions, this)); this.api.asc_registerCallback('asc_onSpellCheckInit', _.bind(this.loadLanguages, this)); - this.api.asc_registerCallback('asc_onLicenseError', _.bind(this.onPaidFeatureError, this)); Common.NotificationCenter.on('api:disconnect', _.bind(this.onCoAuthoringDisconnect, this)); Common.NotificationCenter.on('goback', _.bind(this.goBack, this)); @@ -842,26 +841,6 @@ define([ } }, - onPaidFeatureError: function() { - var buttons = [], primary, - mail = (this.appOptions.canBranding) ? ((this.editorConfig && this.editorConfig.customization && this.editorConfig.customization.customer) ? this.editorConfig.customization.customer.mail : '') : 'sales@onlyoffice.com'; - if (mail.length>0) { - buttons.push({value: 'contact', caption: this.textContactUs}); - primary = 'contact'; - } - buttons.push({value: 'close', caption: this.textClose}); - Common.UI.info({ - title: this.textPaidFeature, - msg : this.textLicencePaidFeature, - buttons: buttons, - primary: primary, - callback: function(btn) { - if (btn == 'contact') - window.open('mailto:'+mail, "_blank"); - } - }); - }, - disableEditing: function(disable) { var app = this.getApplication(); if (this.appOptions.canEdit && this.editorConfig.mode !== 'view') { @@ -2146,7 +2125,6 @@ define([ errorDataEncrypted: 'Encrypted changes have been received, they cannot be deciphered.', textClose: 'Close', textPaidFeature: 'Paid feature', - textLicencePaidFeature: 'The feature you are trying to use is available for additional payment.
If you need it, please contact Sales Department', scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.', errorEditingSaveas: 'An error occurred during the work with the document.
Use the \'Save as...\' option to save the file backup copy to your computer hard drive.', errorEditingDownloadas: 'An error occurred during the work with the document.
Use the \'Download as...\' option to save the file backup copy to your computer hard drive.', diff --git a/apps/presentationeditor/main/locale/en.json b/apps/presentationeditor/main/locale/en.json index 5f983080a..bcd8e652c 100644 --- a/apps/presentationeditor/main/locale/en.json +++ b/apps/presentationeditor/main/locale/en.json @@ -313,7 +313,7 @@ "PE.Controllers.Main.textCloseTip": "Click to close the tip", "PE.Controllers.Main.textContactUs": "Contact sales", "PE.Controllers.Main.textCustomLoader": "Please note that according to the terms of the license you are not entitled to change the loader.
Please contact our Sales Department to get a quote.", - "PE.Controllers.Main.textLicencePaidFeature": "The feature you are trying to use is available for extended license.
If you need it, please contact Sales Department", + "del_PE.Controllers.Main.textLicencePaidFeature": "The feature you are trying to use is available for extended license.
If you need it, please contact Sales Department", "PE.Controllers.Main.textLoadingDocument": "Loading presentation", "PE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE connection limitation", "PE.Controllers.Main.textPaidFeature": "Paid feature", diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index ee2c89be4..4786254bc 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -165,7 +165,6 @@ define([ this.api.asc_registerCallback('asc_onDocumentName', _.bind(this.onDocumentName, this)); this.api.asc_registerCallback('asc_onPrintUrl', _.bind(this.onPrintUrl, this)); this.api.asc_registerCallback('asc_onMeta', _.bind(this.onMeta, this)); - this.api.asc_registerCallback('asc_onLicenseError', _.bind(this.onPaidFeatureError, this)); Common.NotificationCenter.on('api:disconnect', _.bind(this.onCoAuthoringDisconnect, this)); Common.NotificationCenter.on('goback', _.bind(this.goBack, this)); Common.NotificationCenter.on('namedrange:locked', _.bind(this.onNamedRangeLocked, this)); @@ -870,26 +869,6 @@ define([ } }, - onPaidFeatureError: function() { - var buttons = [], primary, - mail = (this.appOptions.canBranding) ? ((this.editorConfig && this.editorConfig.customization && this.editorConfig.customization.customer) ? this.editorConfig.customization.customer.mail : '') : 'sales@onlyoffice.com'; - if (mail.length>0) { - buttons.push({value: 'contact', caption: this.textContactUs}); - primary = 'contact'; - } - buttons.push({value: 'close', caption: this.textClose}); - Common.UI.info({ - title: this.textPaidFeature, - msg : this.textLicencePaidFeature, - buttons: buttons, - primary: primary, - callback: function(btn) { - if (btn == 'contact') - window.open('mailto:'+mail, "_blank"); - } - }); - }, - disableEditing: function(disable) { var app = this.getApplication(); if (this.appOptions.canEdit && this.editorConfig.mode !== 'view') { @@ -2334,7 +2313,6 @@ define([ errorDataEncrypted: 'Encrypted changes have been received, they cannot be deciphered.', textClose: 'Close', textPaidFeature: 'Paid feature', - textLicencePaidFeature: 'The feature you are trying to use is available for additional payment.
If you need it, please contact Sales Department', scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.', errorEditingSaveas: 'An error occurred during the work with the document.
Use the \'Save as...\' option to save the file backup copy to your computer hard drive.', errorEditingDownloadas: 'An error occurred during the work with the document.
Use the \'Download as...\' option to save the file backup copy to your computer hard drive.', diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json index 23535bf56..27b5e4a98 100644 --- a/apps/spreadsheeteditor/main/locale/en.json +++ b/apps/spreadsheeteditor/main/locale/en.json @@ -484,7 +484,7 @@ "SSE.Controllers.Main.textConfirm": "Confirmation", "SSE.Controllers.Main.textContactUs": "Contact sales", "SSE.Controllers.Main.textCustomLoader": "Please note that according to the terms of the license you are not entitled to change the loader.
Please contact our Sales Department to get a quote.", - "SSE.Controllers.Main.textLicencePaidFeature": "The feature you are trying to use is available for extended license.
If you need it, please contact Sales Department", + "del_SSE.Controllers.Main.textLicencePaidFeature": "The feature you are trying to use is available for extended license.
If you need it, please contact Sales Department", "SSE.Controllers.Main.textLoadingDocument": "Loading spreadsheet", "SSE.Controllers.Main.textNo": "No", "SSE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE connection limitation",