X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FTemplate%2FPlugin%2FL.pm;h=93508fcf2c7972ad4b0a74e85432fdf0ed3160f3;hb=1b112bd36f0b592a999276b6eb8c90b2a5827998;hp=7403ae4dc106ed17b0307a1369c849c54fcaff99;hpb=5dbd60bfea0c2ca1b3856bddd8dd388acf5aa237;p=kivitendo-erp.git diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index 7403ae4dc..93508fcf2 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -78,7 +78,7 @@ sub simple_format { return _call_presenter('simple_format', @_); } sub button_tag { return _call_presenter('button_tag', @_); } sub submit_tag { return _call_presenter('submit_tag', @_); } sub ajax_submit_tag { return _call_presenter('ajax_submit_tag', @_); } -sub link { return _call_presenter('link', @_); } +sub link { return _call_presenter('link_tag', @_); } sub input_number_tag { return _call_presenter('input_number_tag', @_); } sub textarea_tag { return _call_presenter('textarea_tag', @_); } sub date_tag { return _call_presenter('date_tag', @_); } @@ -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