Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 922f961c

Von G. Richardson vor mehr als 6 Jahren hinzugefügt

  • ID 922f961cb091c49dbc02693faf50382ceb9cd5a2
  • Vorgänger 1d1f3140

Änderungen HP Design

Unterschiede anzeigen:

SL/Template/Plugin/L.pm
my $minrows = delete $attributes{min_rows} || 1;
my $maxrows = delete $attributes{max_rows};
my $rows = $::form->numtextrows($value, $cols, $maxrows, $minrows);
my $class = $attributes{class}; # Do not delete attribute/hash element
$attributes{id} ||= _tag_id();
my $id = $attributes{id};
return $self->textarea_tag($name, $value, %attributes, rows => $rows, cols => $cols) if $rows > 1;
return '<span>'
# PENDENT: Hier sollte noch eine Klasse an kivi.switch_areainput_to_textarea uebergeben werden
# PENDENT: ID gugusli aus button entfernen, wird nicht angezeigt im browser (war nur Test)
return '<span class="switch-form-element">'
. $self->input_tag($name, $value, %attributes, size => $cols)
. "<img src=\"image/edit-entry.png\" onclick=\"kivi.switch_areainput_to_textarea('${id}')\" style=\"margin-left: 2px;\">"
. "<button class=\"wi-tiny icon\"><img src=\"image/edit-entry.png\" onclick=\"kivi.switch_areainput_to_textarea('${id}','".$class."')\"></button>"
. '</span>';
}

Auch abrufbar als: Unified diff