Skip to Content
मेन्यू
This question has been flagged
4338 Views

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
Discard
Related Posts Replies Views Activity
3
जुल॰ 20
6259
1
मई 25
4453
1
नव॰ 22
1966
1
नव॰ 22
2180
0
अग॰ 22
2527