If not running local, use ajax.googleapis to serve jquery
authorSverre Rabbelier <srabbelier@gmail.com>
Thu, 12 Mar 2009 00:48:23 +0000
changeset 1800 32f5379c4242
parent 1799 53d15b129a3b
child 1801 747b0d1115ea
If not running local, use ajax.googleapis to serve jquery Patch by: Sverre Rabbelier
app/soc/templates/soc/base.html
--- a/app/soc/templates/soc/base.html	Wed Mar 11 21:30:28 2009 +0000
+++ b/app/soc/templates/soc/base.html	Thu Mar 12 00:48:23 2009 +0000
@@ -42,7 +42,11 @@
 
 {% block scripts %}
   {% if uses_jq %}
+  {% if is_local %}
   <script type='text/javascript' src="/jquery/jquery-1.2.6.js"></script>
+  {% else %}
+  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
+  {% endif %}
   {% endif %}
   {% if uses_json %}
   <script type='text/javascript' src="/json/json2.js"></script>