web/data/cubicweb.bookmarks.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 12 Nov 2009 12:15:19 +0100
branchstable
changeset 3826 0c0c051863cb
parent 1419 7ff24154351d
permissions -rw-r--r--
close #511810: bad rql generated when looking for vocabulary for a relation on an entity which doesn't exist (yet) technical details: * add a graph of linked variables in the RRQLExpression instance * modify rql rewriter to remove relations where an unexistant variable and or a variable linked to an unexistant variable is used. * activate this feature in Entity.unrelated_rql if the entity doesn't exists yet

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"));
    });
}