]> git.joonet.de Git - adminer.git/commitdiff
Cancel link for multi-edit
authorJakub Vrana <jakub@vrana.cz>
Mon, 18 Oct 2010 05:54:08 +0000 (07:54 +0200)
committerJakub Vrana <jakub@vrana.cz>
Mon, 18 Oct 2010 05:54:08 +0000 (07:54 +0200)
adminer/edit.inc.php
adminer/lang/cs.inc.php

index 1d23d12cba374cd4f9e259f3bb4f94243b888fe1..34399f1e1c58838c09d40095b73fbcc827acb378 100644 (file)
@@ -106,5 +106,8 @@ if ($fields) {
 if ($update) {
        echo "<input type='submit' name='delete' value='" . lang('Delete') . "' onclick=\"return confirm('" . lang('Are you sure?') . "')" . (isset($_GET["select"]) ? " &amp;&amp; !ajaxForm(this.form, 'delete=1')" : "") . ";\">\n";
 }
+if (isset($_GET["select"])) {
+       echo "<a href='" . h($_SERVER["REQUEST_URI"]) . "' onclick='return !ajax(this.href);'>" . lang('Cancel') . "</a>\n";
+}
 ?>
 </form>
index 4c91e62ae65a42e0f0e6533cafc55efc7503b035..9f10c311abb866999c9d23580f6e89f13ee9dbf9 100644 (file)
@@ -290,4 +290,6 @@ $translations = array(
        
        // function translation used in Editor
        'now' => 'teď',
+       
+       'Cancel' => 'Storno',
 );