[Opensrf-commits] r1384 - trunk/src/javascript

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Aug 3 19:46:03 EDT 2008


Author: erickson
Date: 2008-08-03 19:45:57 -0400 (Sun, 03 Aug 2008)
New Revision: 1384

Modified:
   trunk/src/javascript/opensrf_xhr.js
Log:
checking browser agent to see if multipart is supported

Modified: trunk/src/javascript/opensrf_xhr.js
===================================================================
--- trunk/src/javascript/opensrf_xhr.js	2008-08-01 02:32:29 UTC (rev 1383)
+++ trunk/src/javascript/opensrf_xhr.js	2008-08-03 23:45:57 UTC (rev 1384)
@@ -33,14 +33,14 @@
 OpenSRF.XHRequest.prototype.send = function() {
     var xhr_req = this;
     var xreq = this.xreq
-
+    
     if(this.args.timeout) {
         /* this is a standard blocking (non-multipart) call */
         xreq.open('POST', OSRF_HTTP_TRANSLATOR, false);
 
     } else {
 
-        if( /* XXX browser != mozilla */ false ) {
+        if(!navigator.userAgent.match(/mozilla/i)) {
 
             /* standard asynchronous call */
             xreq.onreadystatechange = function() {



More information about the opensrf-commits mailing list