]> git.joonet.de Git - adminer.git/commitdiff
Return false from editingRemoveRow
authorJakub Vrana <jakub@vrana.cz>
Fri, 12 Jan 2018 15:06:00 +0000 (16:06 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 12 Jan 2018 16:11:29 +0000 (17:11 +0100)
adminer/include/editing.inc.php
adminer/indexes.inc.php
adminer/static/editing.js

index 8a6e4458ee242ea79982645eb019c214756f28d9..4cae2c7050972469364b29e0ae9dc7ac9a377531 100644 (file)
@@ -280,7 +280,7 @@ echo checkbox("fields[$i][has_default]", 1, $field["has_default"], "", "", "", "
                        . "<input type='image' class='icon' name='up[$i]' src='../adminer/static/up.gif' alt='^' title='" . lang('Move up') . "' onclick='return !editingMoveRow.call(this, 1);'>&nbsp;"
                        . "<input type='image' class='icon' name='down[$i]' src='../adminer/static/down.gif' alt='v' title='" . lang('Move down') . "' onclick='return !editingMoveRow.call(this, 0);'>&nbsp;"
                : "");
-               echo ($orig == "" || support("drop_col") ? "<input type='image' class='icon' name='drop_col[$i]' src='../adminer/static/cross.gif' alt='x' title='" . lang('Remove') . "' onclick=\"return !editingRemoveRow.call(this, 'fields\$1[field]');\">" : "");
+               echo ($orig == "" || support("drop_col") ? "<input type='image' class='icon' name='drop_col[$i]' src='../adminer/static/cross.gif' alt='x' title='" . lang('Remove') . "' onclick=\"return editingRemoveRow.call(this, 'fields\$1[field]');\">" : "");
                echo "\n";
        }
 }
index da82ff21b3383e8b3c7a2dc8f1852bb63789d2c3..345123473c2038f3f1dd2ab29a92ec096965eba8 100644 (file)
@@ -132,7 +132,7 @@ foreach ($row["indexes"] as $index) {
                }
 
                echo "<td><input name='indexes[$j][name]' value='" . h($index["name"]) . "' autocapitalize='off' aria-labelledby='label-name'>\n";
-               echo "<td><input type='image' class='icon' name='drop_col[$j]' src='../adminer/static/cross.gif' alt='x' title='" . lang('Remove') . "' onclick=\"return !editingRemoveRow.call(this, 'indexes\$1[type]');\">\n";
+               echo "<td><input type='image' class='icon' name='drop_col[$j]' src='../adminer/static/cross.gif' alt='x' title='" . lang('Remove') . "' onclick=\"return editingRemoveRow.call(this, 'indexes\$1[type]');\">\n";
        }
        $j++;
 }
index e7cfbd48f3e947c680479aa56ea1ddce848d6aa9..1cdafc2c448f9d5f61e161e032e0218cb2383c5d 100644 (file)
@@ -258,14 +258,14 @@ function editingAddRow(focus) {
 
 /** Remove table row for field
 * @param string
-* @return boolean
+* @return boolean false
 * @this HTMLInputElement
 */
 function editingRemoveRow(name) {
        var field = formField(this.form, this.name.replace(/[^\[]+(.+)/, name));
        field.parentNode.removeChild(field);
        parentTag(this, 'tr').style.display = 'none';
-       return true;
+       return false;
 }
 
 /** Move table row for field