From: Atom Edoceo Date: Mon, 22 Aug 2011 18:23:14 +0000 (-0700) Subject: Add a new visible alert to the main client screen alerting about pending transactions X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a406ef3f41f61f53e7f74a04e71f4bb76306d7f7;p=evergreen%2Fequinox.git Add a new visible alert to the main client screen alerting about pending transactions Signed-off-by: Edoceo Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index ba5ce6309b..4003508bc5 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -650,6 +650,7 @@ + diff --git a/Open-ILS/xul/staff_client/chrome/content/main/main.js b/Open-ILS/xul/staff_client/chrome/content/main/main.js index f13cbfe633..77e72afb46 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/main.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/main.js @@ -664,6 +664,16 @@ function main_init() { false ); + /** + @brief Stats for Offline Files / Transactions + @launchpad #797408 + */ + var px = new util.file('pending_xacts'); + document.getElementById('offline_message').setAttribute('style','display:none;'); + if (px._file.exists()) { + document.getElementById('offline_message').setAttribute('style','background-color:red;display:block;font-weight:bold;padding:2px;'); + document.getElementById('offline_import_btn').disabled = true; + } } catch(E) { var error = offlineStrings.getFormattedString('common.exception', [E, '']); diff --git a/Open-ILS/xul/staff_client/chrome/content/main/main.xul b/Open-ILS/xul/staff_client/chrome/content/main/main.xul index 1c9d96f68d..c9ab790f69 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/main.xul +++ b/Open-ILS/xul/staff_client/chrome/content/main/main.xul @@ -176,12 +176,15 @@ + +