web/data/cubicweb.tabs.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 27 Jan 2009 18:46:49 +0100
changeset 485 0f830732be19
parent 239 5b58fd1aba50
child 491 e6d025d7d313
permissions -rw-r--r--
[tabs] provide a working tabs implementation, that lazy-loads tab content & should remember the current position

function set_tab(tabname) {
  // set appropriate cookie
  // XXX see if we can no just do it with jQuery
  async_remote_exec('remember_active_tab', tabname);
  // trigger show + tabname event
  log('set tab for ' + jQuery('#lazy-' + tabname).attr('cubicweb:loadurl'));
  trigger_load(tabname);
}