forgot .ischanged, again :D
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Jul 2005 11:52:25 +0000 (11:52 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Jul 2005 11:52:25 +0000 (11:52 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1469 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 4a17e6f..f5d68eb 100644 (file)
@@ -844,7 +844,7 @@ function patron_summary_refresh(ev) {
        var disable_e = document.getElementById('patron_edit_system_disable_checkbox');
        if (disable_e) {
                disable_e.checked = (PATRON.au.active() != 1);
-               disable_e.setAttribute("oncommand","try{if (PATRON.au.active() == 1) {PATRON.au.active('0');} else {PATRON.au.active('1');}}catch(E){alert(E);}");
+               disable_e.setAttribute("oncommand","try{PATRON.au.ischanged('1'); if (PATRON.au.active() == 1) {PATRON.au.active('0');} else {PATRON.au.active('1');}}catch(E){alert(E);}");
        }
        var profile_e = document.getElementById('patron_status_data_profile');
        if (profile_e) {