From df1015d8263ee4138fcf1a8bba3dda4d88e68436 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 12 May 2021 14:36:24 +0300 Subject: [PATCH] Refactoring --- apps/documenteditor/main/app/controller/Main.js | 4 ++-- apps/documenteditor/mobile/app/controller/Main.js | 8 ++++---- apps/presentationeditor/main/app/controller/Main.js | 4 ++-- apps/presentationeditor/mobile/app/controller/Main.js | 8 ++++---- apps/spreadsheeteditor/main/app/controller/Main.js | 4 ++-- apps/spreadsheeteditor/mobile/app/controller/Main.js | 8 ++++---- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index b74fd5b0e6..8c929dd01e 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -2480,8 +2480,8 @@ define([ if (!Common.Locale.getCurrentLanguage()) { Common.UI.warning({ msg: this.errorLang, - callback: function() { - } + buttons: [], + closable: false }); return false; } diff --git a/apps/documenteditor/mobile/app/controller/Main.js b/apps/documenteditor/mobile/app/controller/Main.js index 9f6c281d55..b53ab6578b 100644 --- a/apps/documenteditor/mobile/app/controller/Main.js +++ b/apps/documenteditor/mobile/app/controller/Main.js @@ -1499,10 +1499,10 @@ define([ onLanguageLoaded: function() { if (!Common.Locale.getCurrentLanguage()) { - uiApp.alert( - this.errorLang, - this.notcriticalErrorTitle - ); + uiApp.modal({ + title : this.notcriticalErrorTitle, + text : this.errorLang + }); return false; } return true; diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 764938ed88..419c9a5eba 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -2111,8 +2111,8 @@ define([ if (!Common.Locale.getCurrentLanguage()) { Common.UI.warning({ msg: this.errorLang, - callback: function() { - } + buttons: [], + closable: false }); return false; } diff --git a/apps/presentationeditor/mobile/app/controller/Main.js b/apps/presentationeditor/mobile/app/controller/Main.js index 2c66e159bf..012b4ce3d0 100644 --- a/apps/presentationeditor/mobile/app/controller/Main.js +++ b/apps/presentationeditor/mobile/app/controller/Main.js @@ -1400,10 +1400,10 @@ define([ onLanguageLoaded: function() { if (!Common.Locale.getCurrentLanguage()) { - uiApp.alert( - this.errorLang, - this.notcriticalErrorTitle - ); + uiApp.modal({ + title : this.notcriticalErrorTitle, + text : this.errorLang + }); return false; } return true; diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 3e34f052cd..54d99bab30 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -2456,8 +2456,8 @@ define([ if (!Common.Locale.getCurrentLanguage()) { Common.UI.warning({ msg: this.errorLang, - callback: function() { - } + buttons: [], + closable: false }); return false; } diff --git a/apps/spreadsheeteditor/mobile/app/controller/Main.js b/apps/spreadsheeteditor/mobile/app/controller/Main.js index e73df8db75..71f96d868d 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Main.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Main.js @@ -1603,10 +1603,10 @@ define([ onLanguageLoaded: function() { if (!Common.Locale.getCurrentLanguage()) { - uiApp.alert( - this.errorLang, - this.notcriticalErrorTitle - ); + uiApp.modal({ + title : this.notcriticalErrorTitle, + text : this.errorLang + }); return false; } return true;