Fix Hold Capture checkin mode
authorThomas Berezansky <tsbere@mvlc.org>
Fri, 27 May 2011 15:39:53 +0000 (11:39 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 27 May 2011 15:51:47 +0000 (11:51 -0400)
oils_persist was trumping hardcoded values.
Also, change how checked is set/unset for reliability.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/xul/staff_client/server/circ/checkin.xul

index 6851ffb..046180e 100644 (file)
@@ -42,9 +42,9 @@
 
                 var tab_name;
                 if (xul_param('hold_capture')) {
-                    var cb1 = document.getElementById('checkin_auto_print_slips'); cb1.hidden = true; cb1.checked = true;
+                    var cb1 = document.getElementById('checkin_auto_print_slips'); cb1.hidden = true; cb1.setAttribute('checked','true'); cb1.removeAttribute('oils_persist');
                     var cb1_ind = document.getElementById('checkin_auto_print_slips_indicator'); cb1_ind.hidden = false;
-                    var cb2 = document.getElementById('suppress_holds_and_transits'); cb2.hidden = true; cb2.checked = false;
+                    var cb2 = document.getElementById('suppress_holds_and_transits'); cb2.hidden = true; cb2.removeAttribute('checked'); cb2.removeAttribute('oils_persist');
                     var cb2_ind = document.getElementById('suppress_holds_and_transits_indicator'); cb2_ind.hidden = true;
                     document.getElementById('checkin_effective_date_hbox').hidden = true;
                     document.getElementById('caption').setAttribute('label',document.getElementById('circStrings').getString('staff.circ.checkin.hold_capture'));