]> asedeno.scripts.mit.edu Git - bluechips.git/commitdiff
load mobile javascript from the right path
authorAlejandro R. Sedeño <asedeno@mit.edu>
Mon, 22 Mar 2010 03:39:05 +0000 (23:39 -0400)
committerEvan Broder <broder@mit.edu>
Fri, 26 Mar 2010 14:26:18 +0000 (10:26 -0400)
If bluechips is not at the webserver root, the mobile interface should
still work.

bluechips/templates/mobile/base.mako

index 259c92a02d1f07d4b43aab1675093f209fc0cd6e..4d81b40603017e2cd9ce7d1beba19f784afb96c6 100644 (file)
@@ -12,7 +12,7 @@
     <meta name="apple-mobile-web-app-capable" content="yes" />
     <meta name="apple-mobile-web-app-status-bar-style" content="black" />
     ${h.javascript_link('//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js')}
-    ${h.javascript_link('/js/mobile.js')}
+    ${h.javascript_link('%s/js/mobile.js' % request.script_name)}
   </head>
   <body>
     % for message in h.flash.pop_messages():