summaryrefslogtreecommitdiffstats
path: root/extensions/GuidedBugEntry/web/js
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-05-17 06:32:28 +0200
committerByron Jones <bjones@mozilla.com>2012-05-17 06:32:28 +0200
commitcff766c15cffe2f1bd92fe361d9389353cedd2f4 (patch)
tree92a09e12dc851cadcb8982c96868d43c47f35dad /extensions/GuidedBugEntry/web/js
parent7e30f9685c0c91c1aff4bf4a1cf521f0f78005d7 (diff)
downloadbugzilla-cff766c15cffe2f1bd92fe361d9389353cedd2f4.tar.gz
bugzilla-cff766c15cffe2f1bd92fe361d9389353cedd2f4.tar.xz
Bug 753785: fix issue with guided bug entry
Diffstat (limited to 'extensions/GuidedBugEntry/web/js')
-rw-r--r--extensions/GuidedBugEntry/web/js/guided.js18
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)