checking browser agent to see if multipart is supported
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 3 Aug 2008 23:45:57 +0000 (23:45 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 3 Aug 2008 23:45:57 +0000 (23:45 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1384 9efc2488-bf62-4759-914b-345cdb29e865

src/javascript/opensrf_xhr.js

index 8c79441..ab08a10 100644 (file)
@@ -33,14 +33,14 @@ OpenSRF.XHRequest = function(osrf_msg, args) {
 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() {