this symlink is needed
[unfold.git] / plugins / querycode.py
index cdc2929..fc5c163 100644 (file)
@@ -5,6 +5,8 @@ class QueryCode (Plugin):
     def __init__ (self, query, **settings):
         Plugin.__init__ (self, **settings)
         self.query=query
+        # our javascript requires the details of the manifold server
+        self.page.expose_js_manifold_config()
 
     def template_file (self):
         return "querycode.html"
@@ -12,7 +14,9 @@ class QueryCode (Plugin):
     def requirements (self):
         return { 
             'js_files' : [ "js/querycode.js", "js/plugin.js", "js/query.js", "js/onavail.js",
-                           "js/manifold-pubsub.js", "js/manifold-async.js", "spin/spin.all.js", 
+                           "js/manifold-pubsub.js", "js/manifold-async.js", 
+                           "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js", 
+                           
 #        Plugins::add_js('/QueryCode/beautyofcode/scripts/shCore.js');
 #        Plugins::add_js('/QueryCode/beautyofcode/scripts/shBrushPython.js');
 #        Plugins::add_js('/QueryCode/beautyofcode/scripts/shBrushRuby.js');