@@ -440,7 +440,7 @@ $(document).ready(function () {
440
440
441
441
openMessage : function ( msg , dir , delay , error ) {
442
442
// set toolbar freeze
443
- this . lockToolbar = true ;
443
+ this . _lockToolbar ( true ) ;
444
444
445
445
// add content to element
446
446
this . messages . find ( '.cms_messages-inner' ) . html ( msg ) ;
@@ -517,7 +517,7 @@ $(document).ready(function () {
517
517
closeMessage : function ( ) {
518
518
this . messages . fadeOut ( 300 ) ;
519
519
// unlock toolbar
520
- this . lockToolbar = false ;
520
+ this . _lockToolbar ( false ) ;
521
521
} ,
522
522
523
523
openModal : function ( url , name , breadcrumb ) {
@@ -765,7 +765,7 @@ $(document).ready(function () {
765
765
this . sideframe . find ( '.cms_sideframe-btn' ) . css ( 'right' , - 20 ) ;
766
766
}
767
767
768
- this . lockToolbar = true ;
768
+ this . _lockToolbar ( true ) ;
769
769
} ,
770
770
771
771
_hideSideframe : function ( close ) {
@@ -785,7 +785,8 @@ $(document).ready(function () {
785
785
// should we reload
786
786
if ( this . enforceReload ) CMS . API . Helpers . reloadBrowser ( ) ;
787
787
788
- this . lockToolbar = false ;
788
+ // lock toolbar
789
+ this . _lockToolbar ( false ) ;
789
790
} ,
790
791
791
792
_minimizeSideframe : function ( ) {
@@ -1246,6 +1247,18 @@ $(document).ready(function () {
1246
1247
$ ( window ) . scrollTop ( this . body . data ( 'scroll' ) ) ;
1247
1248
} ,
1248
1249
1250
+ _lockToolbar : function ( lock ) {
1251
+ if ( lock ) {
1252
+ this . lockToolbar = true ;
1253
+ // make button look disabled
1254
+ this . toolbarTrigger . css ( 'opacity' , 0.2 ) ;
1255
+ } else {
1256
+ this . lockToolbar = false ;
1257
+ // make button look disabled
1258
+ this . toolbarTrigger . css ( 'opacity' , 1 ) ;
1259
+ }
1260
+ } ,
1261
+
1249
1262
_debug : function ( ) {
1250
1263
var that = this ;
1251
1264
var timeout = 1000 ;
0 commit comments