From: miker Date: Sat, 12 May 2007 04:43:45 +0000 (+0000) Subject: function-ification X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ec4c0279bf1144efe29be72f01a234dcfce57bfc;p=Evergreen.git function-ification git-svn-id: svn://svn.open-ils.org/ILS/trunk@7266 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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]}); }, } ) );