From: Sven Schöling Date: Fri, 23 Apr 2021 13:13:56 +0000 (+0200) Subject: Presenter::Tag: button_tag rendert onclick nur wenn vorhanden X-Git-Tag: kivitendo-mebil_0.1-0~9^2~111 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=383871e4d212a5285c17b22ca87ae5f9340dca96;p=kivitendo-erp.git Presenter::Tag: button_tag rendert onclick nur wenn vorhanden --- diff --git a/SL/Presenter/Tag.pm b/SL/Presenter/Tag.pm index 1896445a6..c4b9b7f78 100644 --- a/SL/Presenter/Tag.pm +++ b/SL/Presenter/Tag.pm @@ -289,7 +289,7 @@ sub button_tag { $onclick = 'if (!confirm("'. _J(delete($attributes{confirm})) .'")) return false; ' . $onclick if $attributes{confirm}; - html_tag('input', undef, %attributes, value => $value, onclick => $onclick); + html_tag('input', undef, %attributes, value => $value, (onclick => $onclick)x!!$onclick); } sub submit_tag {