LP#1531976: fix bringing up Mesage Center and Triggered Events
authorThomas Berezansky <tsbere@mvlc.org>
Thu, 7 Jan 2016 19:34:18 +0000 (14:34 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 2 Mar 2016 19:40:02 +0000 (14:40 -0500)
This patch fixes a bug in the XUL staff client where
using Other -> Triggered Events from the patron page,
then Other -> Message Center, only brings up the Triggered
Events page in both cases (and vice versa).

This patch works by preventing the deck code from thinking they are
the same page, despite both using the browser wrapper as their base URL.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/xul/staff_client/server/patron/display.js

index bf3ff02..7eaca57 100644 (file)
@@ -336,7 +336,7 @@ patron.display.prototype = {
                         ['command'],
                         function(ev) {
                             obj.right_deck.set_iframe(
-                                xulG.url_prefix(urls.XUL_REMOTE_BROWSER),
+                                xulG.url_prefix(urls.XUL_REMOTE_BROWSER) + '?triggered_events',
                                 {},
                                 {
                                     'url': urls.EG_TRIGGER_EVENTS + "?patron_id=" + obj.patron.id(),
@@ -350,7 +350,7 @@ patron.display.prototype = {
                         ['command'],
                         function(ev) {
                             obj.right_deck.set_iframe(
-                                xulG.url_prefix(urls.XUL_REMOTE_BROWSER),
+                                xulG.url_prefix(urls.XUL_REMOTE_BROWSER) + '?message_center',
                                 {},
                                 {
                                     'url': urls.EG_PATRON_MESSAGE_CENTER + "/" + obj.patron.id(),