projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51d0274
)
Den Confirm-Text unter SL::Template::Plugin::L::submit_tag escapen
author
Thomas Heck
<theck@linet-services.de>
Tue, 4 Sep 2012 13:44:43 +0000
(15:44 +0200)
committer
Thomas Heck
<theck@linet-services.de>
Wed, 5 Sep 2012 12:33:28 +0000
(14:33 +0200)
SL/Template/Plugin/L.pm
patch
|
blob
|
history
diff --git
a/SL/Template/Plugin/L.pm
b/SL/Template/Plugin/L.pm
index
9cf5ebb
..
6d6b59f
100644
(file)
--- a/
SL/Template/Plugin/L.pm
+++ b/
SL/Template/Plugin/L.pm
@@
-301,7
+301,9
@@
sub submit_tag {
my ($self, $name, $value, @slurp) = @_;
my %attributes = _hashify(@slurp);
- $attributes{onclick} = "if (confirm('" . delete($attributes{confirm}) . "')) return true; else return false;" if $attributes{confirm};
+ if ( $attributes{confirm} ) {
+ $attributes{onclick} = 'return confirm("'. _J(delete($attributes{confirm})) .'");';
+ }
return $self->input_tag($name, $value, %attributes, type => 'submit', class => 'submit');
}