From 165f1c4f4790b2b2150e7839b86404f558d30134 Mon Sep 17 00:00:00 2001 From: pines Date: Tue, 29 Aug 2006 19:49:08 +0000 Subject: [PATCH] don't redisplay alert messages on refresh unless they have changed git-svn-id: svn://svn.open-ils.org/ILS/trunk@5763 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/display.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index 937196ea9a..4cca8f45c4 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -387,7 +387,12 @@ patron.display.prototype = { var holds = req.getResultObject(); if (holds.ready && holds.ready > 0) msg += 'Holds available: ' + holds.ready; if (msg) { - obj.error.yns_alert(msg,'Alert Message','OK',null,null,'Check here to confirm this message.'); + if (msg != obj.old_msg) { + obj.error.yns_alert(msg,'Alert Message','OK',null,null,'Check here to confirm this message.'); + obj.old_msg = msg; + } else { + obj.error.sdump('D_TRACE','Not re-displaying this alert message: ' + msg); + } } if (obj.stop_checkouts && obj.checkout_window) { setTimeout( function() { -- 2.43.2