From ec4c0279bf1144efe29be72f01a234dcfce57bfc Mon Sep 17 00:00:00 2001 From: miker Date: Sat, 12 May 2007 04:43:45 +0000 Subject: [PATCH] function-ification git-svn-id: svn://svn.open-ils.org/ILS/trunk@7266 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/reports/xul/template-config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/reports/xul/template-config.js b/Open-ILS/web/reports/xul/template-config.js index c327d9d1fb..ca6d31e8cf 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, - 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]}); }, } ) ); -- 2.43.2