diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-02-17 09:36:20 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-02-17 09:36:20 +0000 |
commit | 760dd70519ade43df447196bc29063fe118908b4 (patch) | |
tree | 755b63db378f3b63cfb77cdb8284199d0637d594 /edit.php | |
parent | 715ddba1dcc1454000180bd2d30e553b3f036d0a (diff) | |
download | semanticscuttle-760dd70519ade43df447196bc29063fe118908b4.tar.gz semanticscuttle-760dd70519ade43df447196bc29063fe118908b4.tar.bz2 |
Bug fix: correct popup behaviour.
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@284 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'edit.php')
-rw-r--r-- | edit.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -87,12 +87,13 @@ if (!($row = $bookmarkservice->getBookmark(intval($bookmark), true))) { if (POST_DELETE != '') { // Delete bookmark if ($bookmarkservice->deleteBookmark($bookmark)) { - if (POST_REFERRER != '') { + if (POST_POPUP != '') { + $tplVars['msg'] = '<script type="text/javascript">window.close();</script>'; + } elseif (POST_REFERRER != '') { header('Location: '. POST_REFERRER); } else { header('Location: '. createURL('bookmarks', $currentUser->getUsername())); } - exit(); } else { $tplVars['error'] = T_('Failed to delete bookmark'); $templateservice->loadTemplate('error.500.tpl', $tplVars); |