From 7034023dc7ab97cc473aca70b94ba060ef6f579c Mon Sep 17 00:00:00 2001 From: Elena.Budnik Date: Mon, 28 May 2018 11:29:00 +0200 Subject: [PATCH] infoMsgLong class with scrollbar --- js/app/AmdaApp.js | 16 ++++++++++++++-- js/resources/css/amda.css | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/js/app/AmdaApp.js b/js/app/AmdaApp.js index 3a156cf..6fe5eb6 100755 --- a/js/app/AmdaApp.js +++ b/js/app/AmdaApp.js @@ -235,7 +235,19 @@ Ext.define('amdaApp.AmdaApp', { buttons: Ext.Msg.OK }); }, - + //create InfoBox + infoMsgLong : function(msg) { + Ext.Msg.show({ + title: 'AMDA Info', + cls: 'infoMsgLong', + msg: msg, + modal: false, + autoScroll: true, + resizable: true, + icon: Ext.Msg.INFO, + buttons: Ext.Msg.OK + }); + }, //create WarningBox warningMsg : function(msg) { Ext.Msg.show({ @@ -610,7 +622,7 @@ Ext.define('amdaApp.AmdaApp', { loadMask.hide(); if (res.success == true) { - myDesktopApp.infoMsg('Your Wokspace has been copied to new AMDA

' + res.msg); + myDesktopApp.infoMsgLong('Your Wokspace has been copied to new AMDA

' + res.msg); } else { myDesktopApp.errorMsg(res.error); diff --git a/js/resources/css/amda.css b/js/resources/css/amda.css index 26124b9..ca8fb0b 100644 --- a/js/resources/css/amda.css +++ b/js/resources/css/amda.css @@ -239,7 +239,7 @@ background-image: url(../images/16x16/error.png) !important; background-color: yellow !important; } -.infoMsg .x-window-body > .x-box-inner { +.infoMsgLong .x-window-body > .x-box-inner { overflow: scroll; } -- libgit2 0.21.2