]> source.dussan.org Git - nextcloud-server.git/commitdiff
Bookmarklet Window closes itself after submit.
authorMarvin Thomas Rabe <m.rabe@echtzeitraum.de>
Tue, 21 Feb 2012 22:08:57 +0000 (23:08 +0100)
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>
Wed, 22 Feb 2012 15:04:32 +0000 (16:04 +0100)
apps/bookmarks/js/addBm.js

index 6e13b59bb2e6e686900011bc6893ef2e67550b6d..59735f80ca6e289c6ff9c4b505e163652c5fa2b1 100644 (file)
@@ -10,7 +10,7 @@ function addBookmark(event) {
                url: 'ajax/addBookmark.php',
                data: 'url=' + encodeURI(url) + '&title=' + encodeURI(title) + '&tags=' + encodeURI(tags),
                success: function(data){ 
-                       location.href='index.php';
+                       window.close();
                }
        });
 }
\ No newline at end of file