mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 02:54:28 +02:00
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:
@@ -89,12 +89,14 @@ 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) {
|
||||||
tags[i].checked = false;
|
ai = i;
|
||||||
|
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)) {
|
||||||
@@ -102,6 +104,9 @@ function editing_add_row(button, allowed) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
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++;
|
||||||
|
Reference in New Issue
Block a user