Skip to content
Snippets Groups Projects
Commit 7e293784 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

partial revert of 23e8f02b

okay. I can't read. we already had a multiline config. It's the default.
So I reverted my change, except for making use of formText/cleanText for
proper line ending handling and I added made focused textareas a bit
larger.
parent 23e8f02b
No related branches found
No related tags found
No related merge requests found
......@@ -409,7 +409,7 @@ if (!class_exists('setting')) {
}
$key = htmlspecialchars($this->_key);
$value = htmlspecialchars($value);
$value = formText($value);
$label = '<label for="config___'.$key.'">'.$this->prompt($plugin).'</label>';
$input = '<textarea rows="3" cols="40" id="config___'.$key.'" name="config['.$key.']" class="edit" '.$disable.'>'.$value.'</textarea>';
......@@ -494,33 +494,6 @@ if (!class_exists('setting_string')) {
}
}
if (!class_exists('setting_text')) {
class setting_text extends setting {
function html(&$plugin, $echo=false) {
$value = '';
$disable = '';
if ($this->is_protected()) {
$value = $this->_protected;
$disable = 'disabled="disabled"';
} else {
if ($echo && $this->_error) {
$value = $this->_input;
} else {
$value = is_null($this->_local) ? $this->_default : $this->_local;
}
}
$key = htmlspecialchars($this->_key);
$value = formText($value);
$label = '<label for="config___'.$key.'">'.$this->prompt($plugin).'</label>';
$input = '<textarea id="config___'.$key.'" name="config['.$key.']" class="edit" '.$disable.'>'.$value.'</textarea>';
return array($label,$input);
}
}
}
if (!class_exists('setting_password')) {
class setting_password extends setting_string {
......
......@@ -15,7 +15,6 @@
* -------------------------------------------
* '' - default class ('setting'), textarea, minimal input validation, setting output in quotes
* 'string' - single line text input, minimal input validation, setting output in quotes
* 'text' - multi line text input, minimal input validation, setting output in quotes
* 'numeric' - text input, accepts numbers and arithmetic operators, setting output without quotes
* if given the '_min' and '_max' parameters are used for validation
* 'numericopt' - like above, but accepts empty values
......
......@@ -104,6 +104,10 @@
height: 4em;
}
#config__manager td textarea.edit:focus {
height: 10em;
}
#config__manager tr .input,
#config__manager tr input,
#config__manager tr textarea,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment