From: Moritz Bunkus Date: Fri, 24 May 2013 11:56:54 +0000 (+0200) Subject: L.sortable_element: beliebige POST-Parameter mit 'params' übergeben können X-Git-Tag: release-3.1.0beta1~401^2~17 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/cb604b36f816c09f2a0ebef6a3d40004b7eb2310?ds=inline L.sortable_element: beliebige POST-Parameter mit 'params' übergeben können --- 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: