From 956f726373ac2c4a7cc66f81c40740d2feed254f Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Wed, 13 Jun 2012 09:44:04 +0200 Subject: [PATCH] Don't bind callbacks multiple times! fixes #258 --- static/js/creation_wizard.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/creation_wizard.js b/static/js/creation_wizard.js index e1134594e..548545aeb 100644 --- a/static/js/creation_wizard.js +++ b/static/js/creation_wizard.js @@ -42,7 +42,7 @@ return; } if (resp.stepid != undefined && resp.form != undefined) { - var stepid = resp.stepid + 1; + var stepid = resp.stepid + 1; $("#step" + stepid).html(resp.form); if (this.options.error_callbacks[stepid] != undefined) { this.options.error_callbacks[stepid](); @@ -70,7 +70,6 @@ evt.preventDefault(); this.$element.on('slid', this.update_buttons); this.$element.carousel('prev'); - this.listen(); }, submit: function(evt) {