From 0c14aeb1915e97fc50a7e42062a2b938634a5076 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 8 Aug 2016 17:14:53 +0300 Subject: [PATCH] Limited size of warning window. --- apps/documenteditor/main/app/controller/Main.js | 1 + apps/presentationeditor/main/app/controller/Main.js | 1 + apps/spreadsheeteditor/main/app/controller/Main.js | 1 + 3 files changed, 3 insertions(+) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index ef42654e7..a4a00d088 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -313,6 +313,7 @@ define([ if (!old_rights) Common.UI.warning({ title: this.notcriticalErrorTitle, + width: _.isEmpty(data.message) ? 'auto' : 350, msg : _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message, callback: function(){ me._state.lostEditingRights = false; diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 521d001ec..1b7dd409e 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -294,6 +294,7 @@ define([ if (!old_rights) Common.UI.warning({ title: this.notcriticalErrorTitle, + width: _.isEmpty(data.message) ? 'auto' : 350, msg : _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message, callback: function(){ me._state.lostEditingRights = false; diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index a8105de0b..a328e09c2 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -325,6 +325,7 @@ define([ if (!old_rights) Common.UI.warning({ title: this.notcriticalErrorTitle, + width: _.isEmpty(data.message) ? 'auto' : 350, msg : _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message, callback: function(){ me._state.lostEditingRights = false;