Limited size of warning window.

This commit is contained in:
Julia Radzhabova 2016-08-08 17:14:53 +03:00
parent 7e75a2a226
commit 0c14aeb191
3 changed files with 3 additions and 0 deletions

View file

@ -313,6 +313,7 @@ define([
if (!old_rights) if (!old_rights)
Common.UI.warning({ Common.UI.warning({
title: this.notcriticalErrorTitle, title: this.notcriticalErrorTitle,
width: _.isEmpty(data.message) ? 'auto' : 350,
msg : _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message, msg : _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message,
callback: function(){ callback: function(){
me._state.lostEditingRights = false; me._state.lostEditingRights = false;

View file

@ -294,6 +294,7 @@ define([
if (!old_rights) if (!old_rights)
Common.UI.warning({ Common.UI.warning({
title: this.notcriticalErrorTitle, title: this.notcriticalErrorTitle,
width: _.isEmpty(data.message) ? 'auto' : 350,
msg : _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message, msg : _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message,
callback: function(){ callback: function(){
me._state.lostEditingRights = false; me._state.lostEditingRights = false;

View file

@ -325,6 +325,7 @@ define([
if (!old_rights) if (!old_rights)
Common.UI.warning({ Common.UI.warning({
title: this.notcriticalErrorTitle, title: this.notcriticalErrorTitle,
width: _.isEmpty(data.message) ? 'auto' : 350,
msg : _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message, msg : _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message,
callback: function(){ callback: function(){
me._state.lostEditingRights = false; me._state.lostEditingRights = false;