[lazy view] give it a proper hole node in the no spinbox case stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 22 Apr 2010 12:18:21 +0200
branchstable
changeset 5370 dc6f3247bfc2
parent 5369 68c33344581c
child 5371 6d25b84ffd50
[lazy view] give it a proper hole node in the no spinbox case
web/views/tabs.py
--- a/web/views/tabs.py	Wed Apr 21 17:25:26 2010 +0200
+++ b/web/views/tabs.py	Thu Apr 22 12:18:21 2010 +0200
@@ -47,6 +47,8 @@
         if show_spinbox:
             w(u'<img src="data/loading.gif" id="%s-hole" alt="%s"/>'
               % (tabid or vid, self._cw._('(loading ...)')))
+        else:
+            w(u'<div id="%s-hole"></div>' % (tabid or vid))
         w(u'<noscript><p><a class="style: hidden" id="seo-%s" href="%s">%s</a></p></noscript>'
           % (tabid or vid, xml_escape(self._cw.build_url(**urlparams)), xml_escape('%s (%s)') %
              (tabid or vid, self._cw._('follow this link if javascript is deactivated'))))