From: Thomas Berezansky Date: Thu, 7 Jan 2016 19:34:18 +0000 (-0500) Subject: LP#1531976: fix bringing up Mesage Center and Triggered Events X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=315beb4572e9c13a928f59f6fe4f23cc4e4d13b3;p=evergreen%2Fmasslnc.git LP#1531976: fix bringing up Mesage Center and Triggered Events 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 Signed-off-by: Chris Sharp Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index bf3ff02af8..7eaca57729 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -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(),