From 20cffadd45b54c95d0a17ca2bfa10324a57159b5 Mon Sep 17 00:00:00 2001 From: rapster <> Date: Mon, 18 Apr 2016 19:04:58 +0000 Subject: [PATCH] www/codemirror/fhem_codemirror.js: Removed initialisation of CM-Editor, this is now done by fhemweb.js. Forum #52379 git-svn-id: https://svn.fhem.de/fhem/trunk@11281 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/codemirror/fhem_codemirror.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/fhem/www/codemirror/fhem_codemirror.js b/fhem/www/codemirror/fhem_codemirror.js index f0ac3ed47..d9e5816c0 100644 --- a/fhem/www/codemirror/fhem_codemirror.js +++ b/fhem/www/codemirror/fhem_codemirror.js @@ -53,25 +53,6 @@ var cm_attr = { } }; -$(document).ready(function(){ - var els = document.getElementsByTagName("textarea"); - if(els.length == 0) - return; - - if($(els[0]).closest("div#edit").css("display")=="none") { // DEF special - $("table.internals a").each(function(){ - var oc = $(this).attr("onclick"); - if(oc) { - $(this).attr("onclick", oc+ - 's=document.getElementById("edit").getElementsByTagName("textarea");'+ - 'if(!s[0].editor) { s[0].editor=true; AddCodeMirror(s[0]);}'); - } - }); - } else { - AddCodeMirror(els[0]); - } -}); - function AddCodeMirror(e, cb) { if(cm_active && cm_loaded == cm_active) return cm_wait(e, cb);