Don't bind callbacks multiple times!

fixes #258
This commit is contained in:
Antoine Nguyen
2012-06-13 09:44:04 +02:00
parent f4b1888811
commit 956f726373
+1 -2
View File
@@ -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) {