From 26ad18bab22f59307faca6501e7029e240f7331c Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 3 Jun 2013 08:56:18 -0700 Subject: [PATCH] Avoid duplicate values of HTML id attributes (bug #3614245) Unsupports " : $return); } /** Generate list of HTML options diff --git a/adminer/static/editing.js b/adminer/static/editing.js index 61a97a04..e639274e 100644 --- a/adminer/static/editing.js +++ b/adminer/static/editing.js @@ -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'); diff --git a/changes.txt b/changes.txt index 3912df7d..981422ad 100644 --- a/changes.txt +++ b/changes.txt @@ -2,6 +2,7 @@ Adminer 3.7.1-dev: Increase click target for checkboxes Use shadow for highlighting default button Don't use LIMIT 1 if inline updating unique row +Don't check previous checkbox on added column in create table (bug #3614245) Order table list by name PostgreSQL: Fix detecting oid column in PDO PostgreSQL: Handle timestamp types (bug #3614086)