function-ification
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 12 May 2007 04:43:45 +0000 (04:43 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 12 May 2007 04:43:45 +0000 (04:43 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7266 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/reports/xul/template-config.js

index c327d9d..ca6d31e 100644 (file)
@@ -502,7 +502,7 @@ function populateOperatorContext () {
                menu.appendChild(
                        createMenuItem(
                                { label : o.label,
-                                 oncommand : "changeOperator({op:'"+i+"',label:'"+o.label+"'})",
+                                 command : function () { return changeOperator({op:i,label:o.label}) },
                                }
                        )
                );
@@ -514,7 +514,7 @@ function populateOperatorContext () {
                                        menu.appendChild(
                                                createMenuItem(
                                                        { label : o.labels[key],
-                                                         oncommand : "changeOperator({op:i,label:o.labels[key]}) },
+                                                         command : function () { return changeOperator({op:i,label:o.labels[key]}); },
                                                        }
                                                )
                                        );