From c0309556342871c2f65b5212ffdf35579d1ce7e6 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 13 Jan 2006 11:03:36 -0500
Subject: [PATCH] Switched to full UTF-8 support

---
 program/js/app.js |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 650dbaa..4ed77fb 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2708,8 +2708,8 @@
   console(request_obj.responseText);
 
     // if we get javascript code from server -> execute it
-    if (request_obj.responseText && (ctype=='text/javascript' || ctype=='application/x-javascript'))
-      eval(request_obj.responseText);
+    if (request_obj.get_text() && (ctype=='text/javascript' || ctype=='application/x-javascript'))
+      eval(request_obj.get_text());
 
     // process the response data according to the sent action
     switch (request_obj.__action)
@@ -2966,9 +2966,6 @@
 
     else if(this.xmlhttp.readyState == 4)
       {
-      this.responseText = this.xmlhttp.responseText;
-      this.responseXML = this.xmlhttp.responseXML;
-      
       if(this.xmlhttp.status == 0)
         this.onabort(this);
       else if(this.xmlhttp.status == 200)
@@ -2986,6 +2983,15 @@
     return this.xmlhttp.getResponseHeader(name);
     };
 
+  this.get_text = function()
+    {
+    return this.xmlhttp.responseText;
+    };
+
+  this.get_xml = function()
+    {
+    return this.xmlhttp.responseXML;
+    };
 
   this.reset();
   

--
Gitblit v1.9.1