Revision c59e85c3
Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt
js/kivi.js | ||
---|---|---|
|
||
return true;
|
||
};
|
||
|
||
ns.switch_areainput_to_textarea = function(id) {
|
||
var $input = $('#' + id);
|
||
if (!$input.length)
|
||
return;
|
||
|
||
var $area = $('<textarea></textarea>');
|
||
|
||
$area.prop('rows', 3);
|
||
$area.prop('cols', $input.prop('size') || 40);
|
||
$area.prop('name', $input.prop('name'));
|
||
$area.prop('id', $input.prop('id'));
|
||
$area.val($input.val());
|
||
|
||
$input.parent().replaceWith($area);
|
||
$area.focus();
|
||
};
|
||
});
|
||
|
||
kivi = namespace('kivi');
|
Auch abrufbar als: Unified diff
AreaInputTag: kleines Icon neben Input zum Umschalten auf Textarea
In Masken, in denen es keinen »Erneuern«-Button gab (neuer
Artikelcontroller), hatten die Benutzer*innen somit auch keine
Möglichkeit, aus dem normalen Input eine Textarea zu machen. Dies hier
ist nun eine manuelle Möglichkeit dafür.