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

Add button for dropping an index

This commit is contained in:
Jakub Vrana
2013-07-06 23:35:26 -07:00
parent 2f1b337d9e
commit 1a0ba88f8d
4 changed files with 23 additions and 17 deletions

View File

@@ -335,10 +335,11 @@ function editingAddRow(button, focus) {
/** Remove table row for field
* @param HTMLInputElement
* @param string
* @return boolean
*/
function editingRemoveRow(button) {
var field = formField(button.form, button.name.replace(/drop_col(.+)/, 'fields$1[field]'));
function editingRemoveRow(button, name) {
var field = formField(button.form, button.name.replace(/drop_col(.+)/, name));
field.parentNode.removeChild(field);
parentTag(button, 'tr').style.display = 'none';
return true;