Lowercase tags
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@344 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
2d53728410
commit
f66e096de7
|
@ -128,13 +128,13 @@ function add_row(button) {
|
|||
var x = match[0] + (match[2] ? added.substr(match[2].length) : added) + '1';
|
||||
var row = button.parentNode.parentNode;
|
||||
var row2 = row.cloneNode(true);
|
||||
var tags = row.getElementsByTagName('SELECT');
|
||||
var tags2 = row2.getElementsByTagName('SELECT');
|
||||
var tags = row.getElementsByTagName('select');
|
||||
var tags2 = row2.getElementsByTagName('select');
|
||||
for (var i=0; i < tags.length; i++) {
|
||||
tags[i].name = tags[i].name.replace(/([0-9.]+)/, x);
|
||||
tags2[i].selectedIndex = tags[i].selectedIndex;
|
||||
}
|
||||
tags = row.getElementsByTagName('INPUT');
|
||||
tags = row.getElementsByTagName('input');
|
||||
for (var i=0; i < tags.length; i++) {
|
||||
if (tags[i].name == 'auto_increment_col') {
|
||||
tags[i].value = x;
|
||||
|
|
Loading…
Reference in a new issue