Revision f2b76d67
Von Thomas Heck vor mehr als 12 Jahren hinzugefügt
SL/Template/Plugin/L.pm | ||
---|---|---|
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');
|
||
}
|
Auch abrufbar als: Unified diff
Den Confirm-Text unter SL::Template::Plugin::L::submit_tag escapen