properties in chrome:// return XHR status 0
authorJason Etheridge <jason@esilibrary.com>
Wed, 21 Sep 2011 15:47:36 +0000 (11:47 -0400)
committerJason Etheridge <jason@esilibrary.com>
Wed, 21 Sep 2011 15:48:10 +0000 (11:48 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/xul/staff_client/chrome/content/main/bindings.xml

index 364184c..35f179e 100644 (file)
                             var x = new XMLHttpRequest();
                             x.open("GET",this.src,false);
                             x.send(null);
-                            if (x.status == 200 && x.responseText) {
+                            if ((x.status == 0 || x.status == 200) && x.responseText) {
                                 var props = this._props2object(x.responseText);
                                 for (var i in props) {
                                     this._props[i] = props[i];
                                 var x2 = new XMLHttpRequest();
                                 x2.open("GET",custom_src,false);
                                 x2.send(null);
-                                if (x2.status == 200 && x2.responseText) {
+                                if ((x2.status == 0 || x2.status == 200) && x2.responseText) {
                                     var props = this._props2object(x2.responseText);
                                     for (var i in props) {
                                         this._props[i] = props[i];