web/data/cubicweb.bookmarks.js
changeset 0 b97547f5f1fa
child 1419 7ff24154351d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/data/cubicweb.bookmarks.js	Wed Nov 05 15:52:50 2008 +0100
@@ -0,0 +1,10 @@
+CubicWeb.require('ajax.js');
+
+function removeBookmark(beid) {
+    d = async_remote_exec('delete_bookmark', beid);
+    d.addCallback(function(boxcontent) {
+	    reloadComponent('bookmarks_box', '', 'boxes', 'bookmarks_box');
+  	document.location.hash = '#header';
+ 	updateMessage(_("bookmark has been removed"));
+    });
+}