in AnnoButton.prototype.buttonElem you should do a little fixation:
return $("<button type='button' class='anno-btn'></button>").html(this.textFn(anno)).addClass(this.className).click((function(_this) { return function(evt) { return _this.click.call(anno, anno, evt); }; })(this));
it should be like this, otherwise it submit the form when click next or done
in AnnoButton.prototype.buttonElem you should do a little fixation:
return $("<button type='button' class='anno-btn'></button>").html(this.textFn(anno)).addClass(this.className).click((function(_this) { return function(evt) { return _this.click.call(anno, anno, evt); }; })(this));it should be like this, otherwise it submit the form when click next or done