summaryrefslogtreecommitdiff
path: root/templates/editbookmark.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/editbookmark.tpl.php')
-rw-r--r--templates/editbookmark.tpl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/editbookmark.tpl.php b/templates/editbookmark.tpl.php
index bbf3484..8031aad 100644
--- a/templates/editbookmark.tpl.php
+++ b/templates/editbookmark.tpl.php
@@ -95,7 +95,7 @@ $this->includeTemplate("dojo.inc");
<td></td>
<td>
<input type="submit" name="submitted" value="<?php echo $btnsubmit; ?>" />
- <input type="button" name="cancel" value="<?php echo T_('Cancel') ?>" onclick="javascript: history.go(-1)" />
+ <input type="button" name="cancel" value="<?php echo T_('Cancel') ?>" onclick="<?php echo $popup?'window.close();':'javascript: history.go(-1)'; ?>" />
<?php
if (isset($showdelete) && $showdelete) {
?>