From: Ben Shum Date: Thu, 28 Feb 2013 03:37:31 +0000 (-0500) Subject: LP#1086458: move up event listeners in place_hold.js X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ca7d04bc908b964f2bcb1b849f1d402ee90f0931;p=evergreen%2Fequinox.git LP#1086458: move up event listeners in place_hold.js The preceding two functions need the event listeners to be defined before use. Move up to prevent errors. Signed-off-by: Ben Shum Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/xul/staff_client/server/patron/place_hold.js b/Open-ILS/xul/staff_client/server/patron/place_hold.js index 62049e78a4..f0424d2e3f 100644 --- a/Open-ILS/xul/staff_client/server/patron/place_hold.js +++ b/Open-ILS/xul/staff_client/server/patron/place_hold.js @@ -17,10 +17,11 @@ function my_init() { var copy_ids = xul_param('copy_ids'); + window.place_hold_event_listeners = new EventListenerList(); + populate_hold_usr_textbox(); populate_pickup_lib_menu(); - window.place_hold_event_listeners = new EventListenerList(); window.place_hold_event_listeners.add($('request_btn'), 'command', function(ev) {