diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php
index 8ce21633..e5734fa8 100644
--- a/adminer/include/editing.inc.php
+++ b/adminer/include/editing.inc.php
@@ -279,11 +279,11 @@ echo checkbox("fields[$i][has_default]", 1, $field["has_default"], "", "", "", "
";
echo (support("move_col") ?
- " "
- . " "
- . " "
+ " " . script("qsl('input').onclick = partial(editingAddRow, 1);")
+ . " " . script("qsl('input').onclick = partial(editingMoveRow, 1);")
+ . " " . script("qsl('input').onclick = partial(editingMoveRow, 0);")
: "");
- echo ($orig == "" || support("drop_col") ? "" : "");
+ echo ($orig == "" || support("drop_col") ? "" . script("qsl('input').onclick = partial(editingRemoveRow, 'fields\$1[field]');") : "");
echo "\n";
}
}
diff --git a/adminer/static/functions.js b/adminer/static/functions.js
index 883edcb3..04c39e7c 100644
--- a/adminer/static/functions.js
+++ b/adminer/static/functions.js
@@ -851,7 +851,7 @@ function cloneNode(el) {
var origEls = qsa(selector, el);
var cloneEls = qsa(selector, el2);
for (var i=0; i < origEls.length; i++) {
- for (var key in {onchange: 1, onkeydown: 1, onsearch: 1, oninput: 1}) {
+ for (var key in {onchange: 1, onkeydown: 1, onsearch: 1, oninput: 1, onclick: 1}) {
if (origEls[i][key]) {
cloneEls[i][key] = origEls[i][key];
}