WindowLog.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 28 May 2012 23:18:14 +0000 (07:18 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 28 May 2012 23:18:14 +0000 (07:18 +0800)
WindowLog.js

index c190091..806b7be 100644 (file)
@@ -92,6 +92,20 @@ WindowLog = {
         var time = (xDate.newDate()).format("H:i:s ")
         
         File.append (path, time + str + ' ' + cmd + "\n");
+        
+        return;
+        // upload it..
+        new XMLHttpRequest({
+            url : 'http://www.roojs.com/admin.php', // configurable?
+            method : 'POST',
+            params : {
+                cmd : cmd,
+                title : str,
+                start_dt : (xDate.newDate()).format("Y-m-d H:i:s")
+            }
+        })
+        
+        
     }
     
 }