[template] Enable DATA_URL for facets, see #3295942
authorDimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
Thu, 14 Nov 2013 13:27:54 +0000
changeset 439 107a55cdb2db
parent 438 c090cae6f5c4
child 440 d614eaa166b0
[template] Enable DATA_URL for facets, see #3295942 Facets in left column were disabled, add missing JavaScript variable
views/basetemplates.py
--- a/views/basetemplates.py	Thu Nov 14 13:28:25 2013 +0000
+++ b/views/basetemplates.py	Thu Nov 14 13:27:54 2013 +0000
@@ -87,6 +87,7 @@
     self.write_doctype()
     # explicitly close the <base> tag to avoid IE 6 bugs while browsing the DOM
     self._cw.html_headers.define_var('BASE_URL', self._cw.base_url())
+    self._cw.html_headers.define_var('DATA_URL', self._cw.datadir_url)
     w(u'<meta http-equiv="content-type" content="%s; charset=%s"/>\n'
       % (content_type, self._cw.encoding))
     w(u'<meta name="viewport" content="initial-scale=1.0; '