--- a/web/views/tabs.py Mon Dec 16 08:45:06 2013 +0100
+++ b/web/views/tabs.py Thu Jan 09 13:49:32 2014 +0100
@@ -172,9 +172,9 @@
if self.lazy:
self._cw.add_onload(u"""
jQuery('#entity-tabs-%(uid)s').tabs(
- { selected: %(tabindex)s,
- select: function(event, ui) {
- setTab(ui.panel.id, '%(cookiename)s');
+ { active: %(tabindex)s,
+ activate: function(event, ui) {
+ setTab(ui.newPanel.attr('id'), '%(cookiename)s');
}
});
setTab('%(domid)s', '%(cookiename)s');
@@ -184,7 +184,7 @@
'cookiename' : self.cookie_name})
else:
self._cw.add_onload(
- u"jQuery('#entity-tabs-%(uid)s').tabs({selected: %(tabindex)s});"
+ u"jQuery('#entity-tabs-%(uid)s').tabs({active: %(tabindex)s});"
% {'tabindex': active_tab_idx, 'uid': uid})