diff options
-rw-r--r-- | extensions/GuidedBugEntry/web/js/guided.js | 18 |
1 files changed, 17 insertions, 1 deletions
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) |