Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid causing reload due to partials loaded with Ajax requests

  • Loading branch information...
commit 7752888e559d0c25eaee93f81ac357e406b084fe 1 parent 4c19e39
@amol- amol- authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tgext/debugbar/sections/inventing.py
View
2  tgext/debugbar/sections/inventing.py
@@ -66,7 +66,7 @@ def on_after_render(response, *args, **kw):
pos_body = page.find('</body>', pos_head + 7)
if pos_body > 0:
response['response'] = ''.join([page[:pos_head],
- Markup('<script>var tgext_debugbar_page_hash="%s";</script>' % m),
+ Markup('<script>if(typeof tgext_debugbar_page_hash === "undefined") window.tgext_debugbar_page_hash="%s";</script>' % m),
page[pos_head:pos_body],
page[pos_body:]])
Please sign in to comment.
Something went wrong with that request. Please try again.