From f0cbbe74a6505ac34c5eb82ad9f212cfc9a8a391 Mon Sep 17 00:00:00 2001 From: miker Date: Sat, 12 May 2007 05:05:04 +0000 Subject: [PATCH] defunction-ification and menulist git-svn-id: svn://svn.open-ils.org/ILS/trunk@7270 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/reports/xul/template-config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/reports/xul/template-config.js b/Open-ILS/web/reports/xul/template-config.js index a6f99d6fd3..6dcb5a51d1 100644 --- a/Open-ILS/web/reports/xul/template-config.js +++ b/Open-ILS/web/reports/xul/template-config.js @@ -502,7 +502,7 @@ function populateOperatorContext () { menu.appendChild( createMenuItem( { label : o.label, - command : function () { return changeOperator({op:i,label:o.label}) }, + oncommand : "changeOperator({op:'"+i+"',label:'"+o.label+"'})" } ) ); @@ -514,7 +514,7 @@ function populateOperatorContext () { menu.appendChild( createMenuItem( { label : o.labels[key], - command : function () { return changeOperator({op:i,label:o.labels[key]}); }, + oncommand : "changeOperator({op:'"+i+"',label:'"+o.labels[key]+"'});" } ) ); @@ -578,7 +578,7 @@ function populateTransformContext () { alias : t.label, label : t.label, params : t.params, - command : function () { return alterColumnTransform(t.name) } + oncommand : "alterColumnTransform('"+t.name+"')" } ) ); -- 2.11.0