null/demo.local.php
[gitlive] / Tasks.js
index 037e3d4..6eb7893 100644 (file)
--- a/Tasks.js
+++ b/Tasks.js
@@ -88,11 +88,21 @@ Tasks = {
         
     },
     
+    
+   
     list: function(repo, callback)
     {
         // have we got the status in the last 15 mins..
         // we should not need to get it again... - it's probably not changed.
          
+         
+        this.query({repo_shortname : repo.name }, callback);
+    },
+                
+         
+    query : function(params , callback)
+    {
+         
         _this = this;
         // do the request to get the task..
         var r = new XMLHttpRequest({
@@ -120,10 +130,14 @@ Tasks = {
         });
         var netrc  = Netrc.forHost('git.roojs.com');
         
+          
+        
         r.open('GET',
-               "http://roojs.com/admin.php/Roo/cash_invoice_entry?_current_task=1"
+               "http://roojs.com/admin.php/Roo/mtrack_ticket?" + r.urlEncode(params)
                ,true, netrc.login, netrc.password  );
-         print("Getting current task: "  +  "http://roojs.com/admin.php/Roo/cash_invoice_entry?_current_task=1");        
+         print("Getting current task: "  +
+               
+               "http://roojs.com/admin.php/Roo/mtrack_ticket?" + r.urlEncode(params));        
         r.send();
         
     },
@@ -399,7 +413,9 @@ Task = XObject.define(
 
 
 //-------------- testing
+/*
 Gtk = imports.gi.Gtk;
 Gtk.init(Seed.argv);
 Tasks.notify( { repo : imports.Scm.Repo.Repo.get('gitlive') } );
-Gtk.main();
\ No newline at end of file
+Gtk.main();
+*/
\ No newline at end of file