X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fquerycode%2Fquerycode.js;h=65c6d0dc6f5ec54acbf36002e66fa9e8790b598f;hb=d89d22bf3efa4cee1897668189f2deacf83bb19c;hp=3574b30e9a7bb8672ccb763118e5c6bf94bf9fe0;hpb=f5384e02bc928851ebdecfd36e58e0996e1b5d6c;p=unfold.git diff --git a/plugins/querycode/querycode.js b/plugins/querycode/querycode.js index 3574b30e..65c6d0dc 100644 --- a/plugins/querycode/querycode.js +++ b/plugins/querycode/querycode.js @@ -28,7 +28,7 @@ var methods = { init : function (options) { - console.log("temporarily turned off SyntaxHighlighter ..."); + if (debug) console.log("temporarily turned off SyntaxHighlighter ..."); // SyntaxHighlighter.all(); return this.each(function() { var $this=$(this); @@ -86,7 +86,7 @@ } html_code=fun(query); dom.html(html_code); - console.log("turned off SyntaxHighlighter.highlight"); + if (debug) console.log("turned off SyntaxHighlighter.highlight"); // SyntaxHighlighter.highlight() }