1
0
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:
jakubvrana
2010-04-02 13:44:23 +00:00
parent 2840567e9f
commit a0dd59ea64
2 changed files with 6 additions and 3 deletions

View File

@@ -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');
}