From 677e1f26fe47cc0c3e0819cb99a9024af49a619c Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 18 May 2010 06:25:29 -0400
Subject: [PATCH] - Some files from /bin + spellchecking actions moved to the new 'utils' task

---
 program/js/app.js |   17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 71c0fcd..dfd7c9f 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -50,7 +50,6 @@
   this.env.request_timeout = 180;  // seconds
   this.env.draft_autosave = 0;     // seconds
   this.env.comm_path = './';
-  this.env.bin_path = './bin/';
   this.env.blankpage = 'program/blank.gif';
 
   // set jQuery ajax options
@@ -4825,8 +4824,7 @@
     }
 
     // replace quota image
-    obj.innerHTML = '';
-    $(obj).append(bar1).append(bar2).append(main);
+    $(obj).html('').append(bar1).append(bar2).append(main);
   };
 
   /********************************************************/
@@ -4836,7 +4834,7 @@
   this.html2plain = function(htmlText, id)
   {
     var rcmail = this,
-      url = this.env.bin_path + 'html2text.php';
+      url = '?_task=utils&_action=html2text';
 
     this.set_busy(true, 'converting');
     console.log('HTTP POST: ' + url);
@@ -4907,11 +4905,6 @@
   // handle HTTP response
   this.http_response = function(response)
   {
-  if (window.console) {
-          var date1 = new Date();
-          var milliseconds1 = date1.getTime();
-        }
-  
     if (response.unlock)
       this.set_busy(false);
 
@@ -4996,12 +4989,6 @@
         }
         break;
     }
-if (window.console) {
-       var date2 = new Date();
-       var milliseconds2 = date2.getTime();
-       console.log('Response execution time: ' + (milliseconds2 - milliseconds1) + 'ms');
-     }
-
   };
 
   // handle HTTP request errors

--
Gitblit v1.9.1