web/data/cubicweb.bookmarks.js
author Julien Jehannet <julien.jehannet@logilab.fr>
Wed, 28 Oct 2009 12:19:01 +0100
branchstable
changeset 3794 c741061d5348
parent 1419 7ff24154351d
permissions -rw-r--r--
[B] views: fix wrong xhtml when empty rset

CubicWeb.require('ajax.js');

function removeBookmark(beid) {
    d = asyncRemoteExec('delete_bookmark', beid);
    d.addCallback(function(boxcontent) {
	    reloadComponent('bookmarks_box', '', 'boxes', 'bookmarks_box');
  	document.location.hash = '#header';
 	updateMessage(_("bookmark has been removed"));
    });
}