From 3565a91cb6fbaff2d09baaafcd260844079738c0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 24 Jan 2017 14:44:39 +0100 Subject: [PATCH] =?utf8?q?ClientJS:=20=C2=BBpattern:=C2=AB=20nur=20bei=20A?= =?utf8?q?bschnittskommentaren?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Bei einem Kommentar hinter der Action ist der Kommentar selber bereits das Pattern und darf das Stichwort »pattern:« nicht mehr enthalten. Andernfalls würde es 1:1 in den JS-Code kopiert. --- SL/ClientJS.pm | 2 +- js/client_js.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/ClientJS.pm b/SL/ClientJS.pm index 7f8bee011..6ef639d74 100644 --- a/SL/ClientJS.pm +++ b/SL/ClientJS.pm @@ -80,7 +80,7 @@ my %supported_methods = ( 'dialog:close' => 1, # ## jQuery Form plugin ## - 'ajaxForm' => 1, # pattern: $().ajaxForm({ success: eval_json_result }) + 'ajaxForm' => 1, # $().ajaxForm({ success: eval_json_result }) # ## jstree plugin ## pattern: $.jstree._reference($()).() diff --git a/js/client_js.js b/js/client_js.js index 3f2bde585..fecbcbcc0 100644 --- a/js/client_js.js +++ b/js/client_js.js @@ -116,7 +116,7 @@ ns.eval_json_result = function(data) { else if (action[0] == 'dialog:close') $(action[1]).dialog('close'); // ## jQuery Form plugin ## - else if (action[0] == 'ajaxForm') pattern: $(action[1]).ajaxForm({ success: eval_json_result }); + else if (action[0] == 'ajaxForm') $(action[1]).ajaxForm({ success: eval_json_result }); // ## jstree plugin ## -- 2.20.1