# HG changeset patch
# User Katia Saurfelt <katia.saurfelt@logilab.fr>
# Date 1382103217 -7200
#      Fri Oct 18 15:33:37 2013 +0200
# Node ID 292de533fa6918b70ed6639fef402cf1d92b740c
# Parent  ccca6d81e9bc4c588aa76d191f752ebe99c69fb4
[facets] add missing DATA_URL javascript variable definition (closes #3230380)

diff --git a/views/basetemplates.py b/views/basetemplates.py
--- a/views/basetemplates.py
+++ b/views/basetemplates.py
@@ -61,6 +61,7 @@
     self.write_doctype()
     # explictly close the <base> tag to avoid IE 6 bugs while browsing 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; '