web/data/cubicweb.bookmarks.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 14 May 2009 12:31:23 +0200
branchtls-sprint
changeset 1803 abf40bcb5967
parent 1419 7ff24154351d
permissions -rw-r--r--
let the StringField have a default TextArea widget, only TextInput on small size constraint & no static vocabulary

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