this.form = this.qid("unit-form");
this.form.validate({
rules: {
"chaptertype": {
required:true
},
"pointenddate":{
required:true
}
},
messages: {
"chaptertype": this.i18n.typeNotNull,
"pointenddate":this.i18n.limitdateNotNull
},
errorClass: "text-danger",
errorElement: "div"
});
this.form.valid()