[OpenSRF-GIT] OpenSRF branch rel_2_2 updated. osrf_rel_2_2_0-1-g312a1d9

Evergreen Git git at git.evergreen-ils.org
Thu Jul 11 17:03:47 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, rel_2_2 has been updated
       via  312a1d9f61aefc69602e7db4f6fe82e7b84d7207 (commit)
      from  6a880834efcce87a6218162d9bd54a970645acd7 (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 312a1d9f61aefc69602e7db4f6fe82e7b84d7207
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