1
0
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:
Jakub Vrana
2013-07-06 23:05:27 -07:00
parent 04a36e9af9
commit e7c79f8725
4 changed files with 6 additions and 4 deletions

View File

@@ -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)) {