mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 02:54:28 +02:00
Fix error in IE (thanks to Martin)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@806 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -83,6 +83,7 @@ function editing_add_row(button, allowed) {
|
|||||||
}
|
}
|
||||||
tags = row.getElementsByTagName('input');
|
tags = row.getElementsByTagName('input');
|
||||||
tags2 = row2.getElementsByTagName('input');
|
tags2 = row2.getElementsByTagName('input');
|
||||||
|
var ret = tags2[0]; // IE loose tags2 after insertBefore()
|
||||||
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') {
|
||||||
tags2[i].value = x;
|
tags2[i].value = x;
|
||||||
@@ -99,7 +100,7 @@ function editing_add_row(button, allowed) {
|
|||||||
row.parentNode.insertBefore(row2, row.nextSibling);
|
row.parentNode.insertBefore(row2, row.nextSibling);
|
||||||
added += '0';
|
added += '0';
|
||||||
row_count++;
|
row_count++;
|
||||||
return tags2[0];
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
function editing_remove_row(button) {
|
function editing_remove_row(button) {
|
||||||
|
Reference in New Issue
Block a user