[OpenSRF-GIT] OpenSRF branch master updated. cd6dcccb7b21d5afe0ff38d901a806e6415c496e

Evergreen Git git at git.evergreen-ils.org
Thu Jul 11 17:03:06 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OpenSRF".

The branch, master has been updated
       via  cd6dcccb7b21d5afe0ff38d901a806e6415c496e (commit)
      from  9bda0431374055bc4bbe440e3f5f8772022f074a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cd6dcccb7b21d5afe0ff38d901a806e6415c496e
Author: Bill Erickson <berick at esilibrary.com>
Date:   Thu Jul 11 16:36:43 2013 -0400

    LP1198983 disable multipart/mixed for Firefox
    
    Only allow multipart mixed/replace message within the Evergreen staff
    client for now.  Eventually, multi-part messages will be wholly
    deprecated.
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/src/javascript/opensrf_xhr.js b/src/javascript/opensrf_xhr.js
index ccc3ffd..382ad3b 100644
--- a/src/javascript/opensrf_xhr.js
+++ b/src/javascript/opensrf_xhr.js
@@ -48,9 +48,11 @@ OpenSRF.XHRequest.prototype.send = function() {
 
     } else {
 
-    /* Only Firefox supports multipart calls, but Safari / Chrome include
-           "Mozilla" in their user agent strings... sigh */
-        if(!navigator.userAgent.match(/mozilla/i) || navigator.userAgent.match(/webkit/i) || navigator.userAgent.match(/msie/i)) {
+        /**
+         * multi-part messages are deprecated.  Eventually this will go away.
+         * For now, continue allowing the Evergreen staff client to use
+         * multi-part messages. */
+        if (!navigator.userAgent.match(/open_ils_staff_client/)) {
             /* standard asynchronous call */
             xreq.onreadystatechange = function() {
                 if(xreq.readyState == 4)

-----------------------------------------------------------------------

Summary of changes:
 src/javascript/opensrf_xhr.js |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
OpenSRF


More information about the opensrf-commits mailing list