diff --git a/studio/js/design.js b/studio/js/design.js index 55a4a83be1..8deb2cb556 100644 --- a/studio/js/design.js +++ b/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);