Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d1aa2c72

Von Hans Peter Schlaepfer vor mehr als 2 Jahren hinzugefügt

  • ID d1aa2c728c3903ae4f8f6fac0af5ff2e88ed864f
  • Vorgänger d6a94d22
  • Nachfolger 4c1fab97

design40: Presenter button_tag: input und button unterscheiden

Unterschiede anzeigen:

SL/Presenter/Tag.pm
_set_id_attribute(\%attributes, $attributes{name}) if $attributes{name};
$attributes{type} ||= 'button';
$attributes{tag} ||= 'input';
$onclick = 'if (!confirm("'. _J(delete($attributes{confirm})) .'")) return false; ' . $onclick if $attributes{confirm};
html_tag('input', undef, %attributes, value => $value, (onclick => $onclick)x!!$onclick);
if ( $attributes{tag} == 'input' ) {
html_tag('input', undef, %attributes, value => $value, (onclick => $onclick)x!!$onclick)
}
elsif ( $attributes{tag} == 'button' ) {
html_tag('button', undef, %attributes, value => $value, (onclick => $onclick)x!!$onclick);
}
}
sub submit_tag {

Auch abrufbar als: Unified diff