patron alert message
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 27 Jul 2005 19:03:56 +0000 (19:03 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 27 Jul 2005 19:03:56 +0000 (19:03 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1545 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js
Evergreen/staff_client/chrome/content/evergreen/patron/patron_edit_legacy.js

index 0a6b4ed..947698a 100755 (executable)
@@ -69,6 +69,15 @@ function patron_display_init(p) {
                        p.retrieve_patron_via_barcode( p.patron );
        }
 
+       if (p._patron && p._patron.alert_message()) {
+               //snd_bad(); snd_bad();
+               s_alert(
+                       'PATRON ALERT MESSAGE\n\n\n\n' +
+                       p._patron.alert_message() +
+                       '\n\n\n\nTo remove this alert permanently, Edit the patron and erase the message in "Alert Message".\n\n'
+               );
+       }
+
        sdump('D_TRACE_EXIT',arg_dump(arguments));
        return p;
 }
index f5d68eb..8d67e34 100644 (file)
@@ -1078,6 +1078,7 @@ function patron_summary_refresh(ev) {
                        mw.handle_error(E);
                }
        }
+       /*
        if (PATRON.au.alert_message()) {
                snd_bad(); snd_bad();
                s_alert(
@@ -1086,6 +1087,7 @@ function patron_summary_refresh(ev) {
                        '\n\n\n\nTo remove this alert permanently, Edit the patron and erase the message in "Alert Message".\n\n'
                );
        }
+       */
 }
 PATRON.summary_refresh = patron_summary_refresh;