Commit 7034023dc7ab97cc473aca70b94ba060ef6f579c

Authored by Elena.Budnik
1 parent 6a449df8

infoMsgLong class with scrollbar

Showing 2 changed files with 15 additions and 3 deletions   Show diff stats
js/app/AmdaApp.js
... ... @@ -235,7 +235,19 @@ Ext.define('amdaApp.AmdaApp', {
235 235 buttons: Ext.Msg.OK
236 236 });
237 237 },
238   -
  238 + //create InfoBox
  239 + infoMsgLong : function(msg) {
  240 + Ext.Msg.show({
  241 + title: 'AMDA Info',
  242 + cls: 'infoMsgLong',
  243 + msg: msg,
  244 + modal: false,
  245 + autoScroll: true,
  246 + resizable: true,
  247 + icon: Ext.Msg.INFO,
  248 + buttons: Ext.Msg.OK
  249 + });
  250 + },
239 251 //create WarningBox
240 252 warningMsg : function(msg) {
241 253 Ext.Msg.show({
... ... @@ -610,7 +622,7 @@ Ext.define('amdaApp.AmdaApp', {
610 622 loadMask.hide();
611 623  
612 624 if (res.success == true) {
613   - myDesktopApp.infoMsg('<b>Your Wokspace has been copied to new AMDA</b><br/><br/> ' + res.msg);
  625 + myDesktopApp.infoMsgLong('<b>Your Wokspace has been copied to new AMDA</b><br/><br/> ' + res.msg);
614 626 }
615 627 else {
616 628 myDesktopApp.errorMsg(res.error);
... ...
js/resources/css/amda.css
... ... @@ -239,7 +239,7 @@ background-image: url(../images/16x16/error.png) !important;
239 239 background-color: yellow !important;
240 240 }
241 241  
242   -.infoMsg .x-window-body > .x-box-inner {
  242 +.infoMsgLong .x-window-body > .x-box-inner {
243 243 overflow: scroll;
244 244 }
245 245  
... ...