web/data/cubicweb.tabs.js
author Arthur Lutz <arthur.lutz@logilab.fr>
Tue, 10 Feb 2009 18:12:10 +0100
changeset 592 aae01d81c713
parent 543 c0f2b6378f70
child 606 40c7c2cf0797
permissions -rw-r--r--
have navigation on top and bottom of search results
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
}