mirror of
https://github.com/vrana/adminer.git
synced 2025-08-14 02:23:59 +02:00
Disable default value when changing from timestamp (bug #2935496)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1361 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -200,6 +200,9 @@ function editingTypeChange(type) {
|
||||
)) {
|
||||
el.value = '';
|
||||
}
|
||||
if (lastType == 'timestamp' && el.name == name + '[has_default]' && /timestamp/i.test(formField(type.form, name + '[default]').value)) {
|
||||
el.checked = false;
|
||||
}
|
||||
if (el.name == name + '[collation]') {
|
||||
el.className = (/(char|text|enum|set)$/.test(text) ? '' : 'hidden');
|
||||
}
|
||||
|
Reference in New Issue
Block a user