mirror of
https://github.com/vrana/adminer.git
synced 2025-08-27 00:05:18 +02:00
Mark length as required for strings
Uses <input formnovalidate> instead of <form novalidate> to highlight error fields.
This commit is contained in:
@@ -358,6 +358,7 @@ function editingTypeChange(type) {
|
||||
(/(char|binary)$/.test(lastType) && /(char|binary)$/.test(text))
|
||||
|| (/(enum|set)$/.test(lastType) && /(enum|set)$/.test(text))
|
||||
)) {
|
||||
el.required = /var(char|binary)$/.test(text);
|
||||
el.value = '';
|
||||
}
|
||||
if (lastType == 'timestamp' && el.name == name + '[has_default]' && /timestamp/i.test(formField(type.form, name + '[default]').value)) {
|
||||
|
Reference in New Issue
Block a user