From: pines Date: Tue, 29 Aug 2006 19:49:08 +0000 (+0000) Subject: don't redisplay alert messages on refresh unless they have changed X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=165f1c4f4790b2b2150e7839b86404f558d30134;p=evergreen%2Fpines.git 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 --- 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() {