web/data/cubicweb.tabs.js
author Stephanie Marcu <stephanie.marcu@logilab.fr>
Thu, 02 Apr 2009 11:42:58 +0200
changeset 1211 90bb6e89e356
parent 606 40c7c2cf0797
child 1419 7ff24154351d
permissions -rw-r--r--
add the name of the currently attached file, if the file already exists (i.e in the edition form)

function set_tab(tabname, cookiename) {
    // set appropriate cookie
    async_remote_exec('set_cookie', cookiename, tabname);
    // trigger show + tabname event
    trigger_load(tabname);
}