From: erickson Date: Sun, 3 Aug 2008 23:45:57 +0000 (+0000) Subject: checking browser agent to see if multipart is supported X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6e789a0f7e38005f19fd5d57c9e069eff13c6f4f;p=working%2FOpenSRF.git 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 --- 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() {