X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fquerycode%2Fquerycode.js;h=0898e4a68e7eb724e4c74842b763eb35a8f98d5b;hb=00c607ef9000811b027330152e09b4da8c46ad02;hp=eab1238e0162fcb4b4d9a0d20d37e62476814e75;hpb=d2ab222245b6311d81f9465cde3f48761c077168;p=unfold.git diff --git a/plugins/querycode/querycode.js b/plugins/querycode/querycode.js index eab1238e..0898e4a6 100644 --- a/plugins/querycode/querycode.js +++ b/plugins/querycode/querycode.js @@ -7,9 +7,6 @@ * License: GPLv3 */ -// xxx TODO -// . turn back on syntax highlighting - (function($) { var debug=false; @@ -28,8 +25,8 @@ var methods = { init : function (options) { - console.log("temporarily turned off SyntaxHighlighter ..."); -// SyntaxHighlighter.all(); + if (debug) console.log("SyntaxHighlighter.all ..."); + SyntaxHighlighter.all(); return this.each(function() { var $this=$(this); var data=$this.data('QueryCode'); @@ -86,9 +83,8 @@ } html_code=fun(query); dom.html(html_code); - console.log("turned off SyntaxHighlighter.highlight"); -// SyntaxHighlighter.highlight() - + if (debug) console.log("SyntaxHighlighter.highlight"); + SyntaxHighlighter.highlight() } @@ -126,7 +122,7 @@ }); ofs = '[' + ofs + ']'; - output += 'pp srv.call("' + mixed_case(query.action) +'", auth, "' + query.method + '", "' + query.timestamp + '", ' + ifs + ', ' + ofs + ')'; + output += 'pp srv.call("' + mixed_case(query.action) +'", auth, "' + query.subject + '", "' + query.timestamp + '", ' + ifs + ', ' + ofs + ')'; var output = '
' + output + "
"; return output; @@ -159,7 +155,7 @@ }); ofs = '[' + ofs + ']'; - output += 'srv.' + mixed_case(query.action) + '(auth, "' + query.method + '", ' + ifs + ', {}, ' + ofs + ')'; + output += 'srv.' + mixed_case(query.action) + '(auth, "' + query.subject + '", ' + ifs + ', {}, ' + ofs + ')'; var output = '
' + output + "
"; return output; }