1. Daniel Greenfeld
  2. transifex

Commits

Andreas Loupasakis  committed 881ebc1

Global variable to hold the static url.

- This can be used in Javascript files (.js) where no server side code exists.

  • Participants
  • Parent commits b8d400f
  • Branches default

Comments (0)

Files changed (1)

File transifex/templates/base-sample.html

View file
   <link media="screen" href="{{ STATIC_URL }}css/jquery.fancybox-1.3.0.css" type="text/css" rel="stylesheet" />
   {% endblock %}
   {% block basejs %}
+  <script type="text/javascript"> var STATIC_URL = "{{ STATIC_URL }}"; </script>
   <script type="text/javascript" src="{{ STATIC_URL }}js/jquery-1.3.2.min.js"></script>
   <script type="text/javascript" src="{{ STATIC_URL }}js/json2.min.js"></script>
   <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>