# HG changeset patch # User Sylvain Thénault # Date 1251367448 -7200 # Node ID 732c06e89906081aa534eac53687afbc2700353e # Parent 17644247f0ff96c18937c1f230b6e3f2f18384b9# Parent e086df78e267935178e0248abd309992d6ad1fe4 merge diff -r e086df78e267 -r 732c06e89906 web/views/tabs.py --- a/web/views/tabs.py Wed Aug 26 20:23:27 2009 +0200 +++ b/web/views/tabs.py Thu Aug 27 12:04:08 2009 +0200 @@ -130,14 +130,15 @@ # call the set_tab() JS function *after* each tab is generated # because the callback binding needs to be done before # XXX make work history: true - self.req.add_onload(u''' + self.req.add_onload(u""" jQuery('#entity-tabs-%(eeid)s > ul').tabs( { selected: %(tabindex)s }); set_tab('%(vid)s', '%(cookiename)s'); -''' % {'tabindex' : tabs.index(active_tab), +""" % {'tabindex' : tabs.index(active_tab), 'vid' : active_tab, 'eeid' : (entity and entity.eid or uid), 'cookiename' : self.cookie_name}) + class EntityRelationView(EntityView): """view displaying entity related stuff. Such a view _must_ provide the rtype, target and vid attributes :