mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 19:44:00 +02:00
Disable maxlength with edit functions
This commit is contained in:
@@ -220,6 +220,21 @@ function editingKeydown(event) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/** Disable maxlength for functions
|
||||
* @param HTMLSelectElement
|
||||
*/
|
||||
function functionChange(select) {
|
||||
var input = select.form[select.name.replace(/^function/, 'fields')];
|
||||
if (selectValue(select)) {
|
||||
if (input.origMaxLength === undefined) {
|
||||
input.origMaxLength = input.maxLength;
|
||||
}
|
||||
input.removeAttribute('maxlength');
|
||||
} else if (input.origMaxLength >= 0) {
|
||||
input.maxLength = input.origMaxLength;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** Create AJAX request
|
||||
|
Reference in New Issue
Block a user