From 6e789a0f7e38005f19fd5d57c9e069eff13c6f4f Mon Sep 17 00:00:00 2001 From: erickson Date: Sun, 3 Aug 2008 23:45:57 +0000 Subject: [PATCH] checking browser agent to see if multipart is supported git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1384 9efc2488-bf62-4759-914b-345cdb29e865 --- src/javascript/opensrf_xhr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/javascript/opensrf_xhr.js b/src/javascript/opensrf_xhr.js index 8c79441..ab08a10 100644 --- a/src/javascript/opensrf_xhr.js +++ b/src/javascript/opensrf_xhr.js @@ -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() { -- 2.11.0