Просмотр исходного кода

Ticket #4840 - HTML editor is mixed up in Studio -> Protean / Lucid -> Custom Styles.

AntonLV 1 год назад
Родитель
Сommit
c3df190320
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      studio/js/design.js

+ 4 - 4
studio/js/design.js

@@ -17,10 +17,10 @@ function BxDolStudioDesign(oOptions) {
             $this.initCodeMirror($this.sCodeMirror);
     });
 
-    var oCollapsable = $('#adm-settings-form .bx-form-collapsable');
-    oCollapsable.on('bx_show', function() {
-    	$this.refreshCodeMirror();
-    });
+    if($this.sCodeMirror != '')
+        $('#adm-settings-form-categorized .bx-form-collapsable').on('bx_show', function() {
+            $this.refreshCodeMirror();
+        });
 }
 
 BxDolStudioDesign.prototype = Object.create(BxDolStudioModule.prototype);