web/data/cubicweb.bookmarks.js
author Celso Flores <jcelsoflores@gmail.com>
Wed, 22 Apr 2009 21:39:43 -0500
changeset 1595 45e07f51065b
parent 0 b97547f5f1fa
child 1419 7ff24154351d
permissions -rw-r--r--
Last translation to Spanish

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