Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2cc99c15

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

  • ID 2cc99c15d609640e087a631544873bb7c70c5d8f
  • Vorgänger 4a6e88d8
  • Nachfolger 01318def

Design 4.0: areainput_tag: übergebene CSS-Klasse beibehalten und Design-Änderung

Unterschiede anzeigen:

SL/Template/Plugin/L.pm
252 252
  my $minrows = delete $attributes{min_rows} || 1;
253 253
  my $maxrows = delete $attributes{max_rows};
254 254
  my $rows    = $::form->numtextrows($value, $cols, $maxrows, $minrows);
255
  my $class   = $attributes{class}; # Do not delete attribute/hash element
255 256

  
256 257
  $attributes{id} ||= _tag_id();
257 258
  my $id            = $attributes{id};
258 259

  
259 260
  return $self->textarea_tag($name, $value, %attributes, rows => $rows, cols => $cols) if $rows > 1;
260

  
261
  return '<span>'
261
  # PENDENT: Hier sollte noch eine Klasse an kivi.switch_areainput_to_textarea uebergeben werden
262
  # PENDENT: ID gugusli aus button entfernen, wird nicht angezeigt im browser (war nur Test)
263
  return '<span class="switch-form-element">'
262 264
    . $self->input_tag($name, $value, %attributes, size => $cols)
263
    . "<img src=\"image/edit-entry.png\" onclick=\"kivi.switch_areainput_to_textarea('${id}')\" style=\"margin-left: 2px;\">"
265
    . "<button class=\"wi-tiny icon\"><img src=\"image/pencil.png\" onclick=\"kivi.switch_areainput_to_textarea('${id}','".$class."')\"></button>"
264 266
    . '</span>';
265 267
}
266 268

  

Auch abrufbar als: Unified diff