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:
jakubvrana 2009-06-15 10:49:46 +00:00
parent fa5c952af0
commit c88df58719

View file

@ -89,12 +89,14 @@ function editing_add_row(button, allowed) {
tags2[i].selectedIndex = tags[i].selectedIndex;
}
tags = row.getElementsByTagName('input');
tags2 = row2.getElementsByTagName('input');
var ai;
for (var i=0; i < tags.length; i++) {
if (tags[i].name == 'auto_increment_col') {
tags[i].value = x;
tags2[i].checked = tags[i].checked;
tags[i].checked = false;
if (tags[i].checked) {
ai = i;
tags[i].checked = false;
}
}
tags[i].name = tags[i].name.replace(/([0-9.]+)/, x);
if (/\[(orig|field|comment)/.test(tags[i].name)) {
@ -102,6 +104,9 @@ function editing_add_row(button, allowed) {
}
}
row.parentNode.insertBefore(row2, row);
if (ai !== undefined) {
row2.getElementsByTagName('input')[ai].checked = true;
}
tags[0].focus();
added += '0';
row_count++;