From 9d7807b356d75453a5892e75b5538dcc2c908c40 Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Fri, 1 Jun 2012 15:43:54 -0400 Subject: [PATCH] Fix broken menu entries under "Other -> Booking" in patron interface This issue was reported to me by Steve Callender. The menu entries under "Other -> Booking" had all stopped working. There's a catalog of URL constants under window.urls sometimes, and formerly (or other times?) at xulG.urls for XUL-based staff client interfaces. There's a new-tab-opening method that needed to be more flexible when looking for that catalog. Signed-off-by: Lebbeous Fogle-Weekley Signed-off-by: Bill Erickson --- Open-ILS/web/js/dojo/openils/XUL.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/openils/XUL.js b/Open-ILS/web/js/dojo/openils/XUL.js index 6bf2c3bf7b..a7f4bfc72a 100644 --- a/Open-ILS/web/js/dojo/openils/XUL.js +++ b/Open-ILS/web/js/dojo/openils/XUL.js @@ -57,7 +57,8 @@ if(!dojo._hasResource["openils.XUL"]) { var loc = xulG.url_prefix(url); if (wrap_in_browser) { - loc = xulG.urls.XUL_BROWSER + "?url=" + window.escape(loc); + var urls = xulG.urls || window.urls; + loc = urls.XUL_BROWSER + "?url=" + window.escape(loc); content_params = dojo.mixin( { "no_xulG": false, "show_print_button": true, -- 2.11.0