mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Don't clone default value in editing
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1083 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -91,9 +91,12 @@ function editing_add_row(button, allowed) {
|
||||
tags2[i].checked = false;
|
||||
}
|
||||
tags2[i].name = tags[i].name.replace(/([0-9.]+)/, x);
|
||||
if (/\[(orig|field|comment)/.test(tags[i].name)) {
|
||||
if (/\[(orig|field|comment|default)/.test(tags[i].name)) {
|
||||
tags2[i].value = '';
|
||||
}
|
||||
if (/\[(has_default)/.test(tags[i].name)) {
|
||||
tags2[i].checked = false;
|
||||
}
|
||||
}
|
||||
tags[0].onchange = function () {
|
||||
editing_name_change(tags[0]);
|
||||
|
Reference in New Issue
Block a user