From cff766c15cffe2f1bd92fe361d9389353cedd2f4 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 17 May 2012 12:32:28 +0800 Subject: Bug 753785: fix issue with guided bug entry --- extensions/GuidedBugEntry/web/js/guided.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'extensions/GuidedBugEntry/web/js') diff --git a/extensions/GuidedBugEntry/web/js/guided.js b/extensions/GuidedBugEntry/web/js/guided.js index a285d6303..0812200ec 100644 --- a/extensions/GuidedBugEntry/web/js/guided.js +++ b/extensions/GuidedBugEntry/web/js/guided.js @@ -38,7 +38,23 @@ var guided = { setStep: function(newStep, noSetHistory) { // initialise new step - eval(newStep + '.onShow()'); + switch(newStep) { + case 'product': + product.onShow(); + break; + case 'otherProducts': + otherProducts.onShow(); + break; + case 'dupes': + dupes.onShow(); + break; + case 'bugForm': + bugForm.onShow(); + break; + default: + guided.setStep('product'); + return; + } // change visibility of _step div if (this._currentStep) -- cgit v1.2.3-24-g4f1b