Check Auto Increment in IE
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@696 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
fa5c952af0
commit
c88df58719
|
@ -89,19 +89,24 @@ function editing_add_row(button, allowed) {
|
||||||
tags2[i].selectedIndex = tags[i].selectedIndex;
|
tags2[i].selectedIndex = tags[i].selectedIndex;
|
||||||
}
|
}
|
||||||
tags = row.getElementsByTagName('input');
|
tags = row.getElementsByTagName('input');
|
||||||
tags2 = row2.getElementsByTagName('input');
|
var ai;
|
||||||
for (var i=0; i < tags.length; i++) {
|
for (var i=0; i < tags.length; i++) {
|
||||||
if (tags[i].name == 'auto_increment_col') {
|
if (tags[i].name == 'auto_increment_col') {
|
||||||
tags[i].value = x;
|
tags[i].value = x;
|
||||||
tags2[i].checked = tags[i].checked;
|
if (tags[i].checked) {
|
||||||
|
ai = i;
|
||||||
tags[i].checked = false;
|
tags[i].checked = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
tags[i].name = tags[i].name.replace(/([0-9.]+)/, x);
|
tags[i].name = tags[i].name.replace(/([0-9.]+)/, x);
|
||||||
if (/\[(orig|field|comment)/.test(tags[i].name)) {
|
if (/\[(orig|field|comment)/.test(tags[i].name)) {
|
||||||
tags[i].value = '';
|
tags[i].value = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
row.parentNode.insertBefore(row2, row);
|
row.parentNode.insertBefore(row2, row);
|
||||||
|
if (ai !== undefined) {
|
||||||
|
row2.getElementsByTagName('input')[ai].checked = true;
|
||||||
|
}
|
||||||
tags[0].focus();
|
tags[0].focus();
|
||||||
added += '0';
|
added += '0';
|
||||||
row_count++;
|
row_count++;
|
||||||
|
|
Loading…
Reference in a new issue