web/data/cubicweb.tabs.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 10 Feb 2009 14:39:54 +0100
changeset 565 7ad527099393
parent 543 c0f2b6378f70
child 606 40c7c2cf0797
permissions -rw-r--r--
published
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
239
5b58fd1aba50 missing file
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
function set_tab(tabname) {
543
c0f2b6378f70 simplification of lazy tabs mechanism
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 491
diff changeset
     2
    // set appropriate cookie
c0f2b6378f70 simplification of lazy tabs mechanism
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 491
diff changeset
     3
    // XXX see if we can no just do it with jQuery
c0f2b6378f70 simplification of lazy tabs mechanism
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 491
diff changeset
     4
    async_remote_exec('remember_active_tab', tabname);
c0f2b6378f70 simplification of lazy tabs mechanism
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 491
diff changeset
     5
    // trigger show + tabname event
c0f2b6378f70 simplification of lazy tabs mechanism
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 491
diff changeset
     6
    trigger_load(tabname);
239
5b58fd1aba50 missing file
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     7
}