Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f2b76d67

Von Thomas Heck vor mehr als 12 Jahren hinzugefügt

  • ID f2b76d67f773954dcfa59ff7c3ebb6f6607e2e43
  • Vorgänger 51d0274d
  • Nachfolger dc7791df

Den Confirm-Text unter SL::Template::Plugin::L::submit_tag escapen

Unterschiede anzeigen:

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