web/views/tabs.py
branchstable
changeset 3026 17644247f0ff
parent 2675 f84ba1a66abb
child 3035 2e4a381ea5b7
child 3209 c2c8f88a4520
--- a/web/views/tabs.py	Wed Aug 26 15:01:52 2009 +0200
+++ b/web/views/tabs.py	Thu Aug 27 12:02:38 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 :