From: phasefx Date: Wed, 14 Oct 2009 19:45:57 +0000 (+0000) Subject: backport changeset 14111: fixes doubled holds display glitch from oils_persist X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=35c9d8541867cbe096fa7fec9847cf07b90cef5e;p=Evergreen.git backport changeset 14111: fixes doubled holds display glitch from oils_persist git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@14421 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js index 042e8d2a6b..dba276354a 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js @@ -50,9 +50,16 @@ if (value) nodes[i].setAttribute( attribute_list[j], value ); } if (nodes[i].nodeName == 'checkbox' && attribute_list.indexOf('checked') > -1) { - var evt = document.createEvent("Events"); - evt.initEvent( 'command', true, true ); - nodes[i].dispatchEvent(evt); + if (nodes[i].disabled == false && nodes[i].hidden == false) { + var no_poke = nodes[i].getAttribute('oils_persist_no_poke'); + if (no_poke && no_poke == 'true') { + // Timing issue for some checkboxes; don't poke them with an event + } else { + var evt = document.createEvent("Events"); + evt.initEvent( 'command', true, true ); + nodes[i].dispatchEvent(evt); + } + } nodes[i].addEventListener( 'command', function(bk) { diff --git a/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul b/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul index 64032b5ecb..5e0473e4e3 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul @@ -58,7 +58,7 @@