From 383871e4d212a5285c17b22ca87ae5f9340dca96 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 23 Apr 2021 15:13:56 +0200 Subject: [PATCH] Presenter::Tag: button_tag rendert onclick nur wenn vorhanden --- SL/Presenter/Tag.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.20.1