1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-28 16:49:57 +02:00

Avoid duplicate values of HTML id attributes (bug #3614245)

Unsupports <label> in IE6.
This commit is contained in:
Jakub Vrana
2013-06-03 08:56:18 -07:00
parent e04be3a996
commit 26ad18bab2
4 changed files with 5 additions and 6 deletions

View File

@@ -295,7 +295,7 @@ function editingAddRow(button, focus) {
var tags = row.getElementsByTagName('select');
var tags2 = row2.getElementsByTagName('select');
for (var i=0; i < tags.length; i++) {
tags2[i].name = tags[i].name.replace(/([0-9.]+)/, x);
tags2[i].name = tags[i].name.replace(/[0-9.]+/, x);
tags2[i].selectedIndex = tags[i].selectedIndex;
}
tags = row.getElementsByTagName('input');