View | Details | Raw Unified | Return to bug 35718
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-2 / +3 lines)
Lines 733-745 Link Here
733
            var syntax = $(this).data("syntax");
733
            var syntax = $(this).data("syntax");
734
            $("#collapse_" + target ).show();
734
            $("#collapse_" + target ).show();
735
            if( syntax ){
735
            if( syntax ){
736
                var esLintConfig = { 'esversion': 6 };
737
                var lint_type = syntax === 'javascript' ? esLintConfig : true;
736
                var editor = CodeMirror.fromTextArea( document.getElementById( target ), {
738
                var editor = CodeMirror.fromTextArea( document.getElementById( target ), {
737
                    lineNumbers: true,
739
                    lineNumbers: true,
738
                    mode: syntax,
740
                    mode: syntax,
739
                    lineWrapping: true,
741
                    lineWrapping: true,
740
                    viewportMargin: Infinity,
742
                    viewportMargin: Infinity,
741
                    gutters: ["CodeMirror-lint-markers"],
743
                    gutters: ["CodeMirror-lint-markers"],
742
                    lint: true
744
                    lint: lint_type,
743
                });
745
                });
744
                editor.on("blur", function(){
746
                editor.on("blur", function(){
745
                    editor.save();
747
                    editor.save();
746
- 

Return to bug 35718