From cb604b36f816c09f2a0ebef6a3d40004b7eb2310 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 24 May 2013 13:56:54 +0200 Subject: [PATCH] =?utf8?q?L.sortable=5Felement:=20beliebige=20POST-Paramet?= =?utf8?q?er=20mit=20'params'=20=C3=BCbergeben=20k=C3=B6nnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Template/Plugin/L.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index 5ef07b75b..3e157a366 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -390,8 +390,10 @@ JAVASCRIPT my $filter = ".filter(function(idx) { return this.substr(0, " . length($params{with}) . ") == '$params{with}'; })"; $filter .= ".map(function(idx, str) { return str.replace('$params{with}_', ''); })"; + my $params_js = $params{params} ? qq| + ($params{params})| : ''; + $stop_event = < on odd and C on even entries. +=item C + +An optional JavaScript string that is evaluated before sending the +POST request. The result must be a string that is appended to the URL. + =back Example: -- 2.20.1