Replace instance of location.href
authorThomas Berezansky <tsbere@mvlc.org>
Wed, 8 Jun 2011 18:07:48 +0000 (14:07 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 10 Jun 2011 17:05:06 +0000 (13:05 -0400)
xulG.set_tab populates xulG properly in new URL, location.href does not

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/xul/staff_client/server/patron/display.js

index f927512..7840825 100644 (file)
@@ -631,7 +631,7 @@ patron.display.prototype = {
                             } else {
                                 error = js2JSON(E).substr(0,100);
                             }
-                            location.href = urls.XUL_PATRON_BARCODE_ENTRY + '?error=' + window.escape(error);
+                            xulG.set_tab(urls.XUL_PATRON_BARCODE_ENTRY + '?error=' + window.escape(error),{},{});
                         } catch(F) {
                             alert(F);
                         }