Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4331 Tampilan

Hello All,

I applied refresh action on save button. But i want condition that when validation error came than page should be refresh. So, condition i apply for this?

My code is below:

FormView.include({
save: function() {
if (this.model === 'farewell.calendar.booking'){
this.$el.find('.save_sign').click();
setTimeout(function() {
window.location.reload(1);
}, 1000);
}
return this._super.apply(this, arguments);
}
});

Thanks Advance.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Jul 20
6253
1
Mei 25
4451
1
Nov 22
1965
1
Nov 22
2180
0
Agu 22
2527