minor fix.. this was working, but not in the same vein of other 'render' elements
authorJason Etheridge <jason@esilibrary.com>
Tue, 22 May 2012 15:11:01 +0000 (11:11 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 25 May 2012 12:44:29 +0000 (08:44 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/xul/staff_client/server/patron/holds.js

index 478056c..f461acf 100644 (file)
@@ -232,8 +232,10 @@ patron.holds.prototype = {
                     'alt_view_btn' : [
                         ['render'],
                         function(e) {
-                            e.setAttribute('label', document.getElementById("circStrings").getString('staff.circ.holds.alt_view.label'));
-                            e.setAttribute('accesskey', document.getElementById("circStrings").getString('staff.circ.holds.alt_view.accesskey'));
+                            return function() {
+                                e.setAttribute('label', document.getElementById("circStrings").getString('staff.circ.holds.alt_view.label'));
+                                e.setAttribute('accesskey', document.getElementById("circStrings").getString('staff.circ.holds.alt_view.accesskey'));
+                            };
                         }
                     ],
                     'cmd_alt_view' : [