File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -493,6 +493,7 @@ function web_editor(config) {
493
493
blockly . hide ( ) ;
494
494
$ ( '#editor' ) . attr ( 'title' , '' ) ;
495
495
editor . ACE . setReadOnly ( false ) ;
496
+ $ ( "#command-snippet" ) . removeClass ( 'disabled' ) ;
496
497
$ ( "#command-snippet" ) . off ( 'click' ) ;
497
498
$ ( "#command-snippet" ) . click ( function ( ) {
498
499
doSnippets ( ) ;
@@ -509,6 +510,7 @@ function web_editor(config) {
509
510
$ ( "#command-snippet" ) . click ( function ( ) {
510
511
alert ( config . translate . alerts . snippets ) ;
511
512
} ) ;
513
+ $ ( "#command-snippet" ) . addClass ( 'disabled' ) ;
512
514
blockly . show ( ) ;
513
515
blockly . css ( 'width' , '33%' ) ;
514
516
blockly . css ( 'height' , '100%' ) ;
Original file line number Diff line number Diff line change @@ -248,6 +248,18 @@ body, input {
248
248
min-width : 90px ;
249
249
}
250
250
251
+ .disabled div .roundsymbol {
252
+ border-color : # AAA ;
253
+ }
254
+
255
+ .disabled i {
256
+ color : # AAA ;
257
+ }
258
+
259
+ .disabled div .roundlabel {
260
+ color : # AAA ;
261
+ }
262
+
251
263
.roundsymbol {
252
264
width : 4rem ;
253
265
height : 4rem ;
You can’t perform that action at this time.
0 commit comments