Alt Serial Control interfaces and Batch Receive reload OPAC when possible
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 9 Mar 2012 17:10:20 +0000 (12:10 -0500)
committerBill Erickson <berick@esilibrary.com>
Tue, 20 Mar 2012 20:10:20 +0000 (16:10 -0400)
commitd83747c07726f4fa5117b0e76652e256a8951f95
tree5196c0500e6d5f46546be4cf567c434271fd561b
parenta111ffe870b451e449ee9d2c681515c426acd824
Alt Serial Control interfaces and Batch Receive reload OPAC when possible

Really, since the Alt Serial Control interfaces are built on AutoGrid,
all we have to do there is teach AutoGrid (and its constituent EditPane)
to try for reload_opac on write operations.

This may cause more reloads of the OPAC than are truly necessary, but
mainly in cases when nobody's looking because the OPAC is hidden away
in another tab.  That's preferable to the alternative of littering the
codebase with dozens of instances of
    try { xulG.reload_opac(); } catch (E) { }
which would just be ugly, bad and unmaintainable.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
Open-ILS/web/js/dojo/openils/widget/EditPane.js
Open-ILS/web/js/ui/default/serial/subscription.js
Open-ILS/xul/staff_client/chrome/content/cat/opac.js
Open-ILS/xul/staff_client/server/serial/batch_receive.js