]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Presenter/Tag.pm
Presenter::Tag: button_tag rendert onclick nur wenn vorhanden
[mfinanz.git] / SL / Presenter / Tag.pm
index 1896445a60590fb0afe9805ec5826629016bbdde..c4b9b7f784535ca9c735de51415897f548def9f1 100644 (file)
@@ -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 {