web/views/tabs.py
changeset 3035 2e4a381ea5b7
parent 2789 39712da6f397
parent 3026 17644247f0ff
child 3230 1d25e928c299
--- a/web/views/tabs.py	Wed Aug 26 15:00:46 2009 +0200
+++ b/web/views/tabs.py	Thu Aug 27 13:02:45 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 :