[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. cc1bdfa7265edcf5522e1e6f9b055a5602152f16

Evergreen Git git at git.evergreen-ils.org
Wed Sep 21 09:23:10 EDT 2011


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 "Evergreen ILS".

The branch, rel_2_0 has been updated
       via  cc1bdfa7265edcf5522e1e6f9b055a5602152f16 (commit)
      from  14b245a7a4d54a1df5f99cd96568e24374c8b5cb (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 cc1bdfa7265edcf5522e1e6f9b055a5602152f16
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Tue Sep 20 10:52:02 2011 -0400

    LP#854760 messagecat fails with certain 404 pages
    
    We were failing to check the HTTP status on the underlying XHR requests.
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml b/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml
index 6eae692..364184c 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml
+++ b/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml
@@ -179,7 +179,7 @@
                             var x = new XMLHttpRequest();
                             x.open("GET",this.src,false);
                             x.send(null);
-                            if (x.responseText) {
+                            if (x.status == 200 && x.responseText) {
                                 var props = this._props2object(x.responseText);
                                 for (var i in props) {
                                     this._props[i] = props[i];
@@ -194,7 +194,7 @@
                                 var x2 = new XMLHttpRequest();
                                 x2.open("GET",custom_src,false);
                                 x2.send(null);
-                                if (x2.responseText) {
+                                if (x2.status == 200 && x2.responseText) {
                                     var props = this._props2object(x2.responseText);
                                     for (var i in props) {
                                         this._props[i] = props[i];

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

Summary of changes:
 .../staff_client/chrome/content/main/bindings.xml  |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list