.off('click.zf.abide')
.on('click.zf.abide', (e) => {
e.preventDefault();
- this.enableValidation(false);
+ this.disableValidation();
this.$element.submit();
});
}
/**
- * Enables (true) or disables (false) the whole validation
- * @param {Boolean} enable
+ * Enables the whole validation
*/
- enableValidation(enable) {
- this.isEnabled = !!enable;
+ disableValidation(){
+ this.isEnabled = true;
+ }
+
+ /**
+ * Disables the whole validation
+ */
+ disableValidation() {
+ this.isEnabled = false;
}
/**