From 58cc1c783faf8bfb79a3be0a4cb6746a6b7c5e22 Mon Sep 17 00:00:00 2001 From: Tamino Date: Fri, 24 Apr 2020 17:00:32 +0200 Subject: [PATCH] =?utf8?q?Hinzuf=C3=BCgen=20der=20Option=20ajax=5Freturn?= =?utf8?q?=20zu=20L.sortable=5Felement?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Template/Plugin/L.pm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index b38365bf3..93508fcf2 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -304,9 +304,13 @@ JAVASCRIPT $filter .= ".map(function(idx, str) { return str.replace('$params{with}_', ''); })"; my $params_js = $params{params} ? qq| + ($params{params})| : ''; + my $ajax_return = ''; + if ($params{ajax_return}) { + $ajax_return = 'kivi.eval_json_result'; + } $stop_event = < can contain the following entries: =item C The URL to POST an AJAX request to after a dragged element has been -dropped. The AJAX request's return value is ignored. If given then +dropped. The AJAX request's return value is ignored by default. If given then C<$params{with}> must be given as well. +=item C + +If trueish then the AJAX request's return is accepted. + =item C A string that is interpreted as the prefix of the children's ID. Upon -- 2.20.1