Cancel link for multi-edit

This commit is contained in:
Jakub Vrana 2010-10-18 07:54:08 +02:00
parent a1f2769309
commit 78adfc2e3a
2 changed files with 5 additions and 0 deletions

View 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>

View file

@ -290,4 +290,6 @@ $translations = array(
// function translation used in Editor
'now' => 'teď',
'Cancel' => 'Storno',
);