Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
4324 Prikazi

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
jul. 20
6249
1
maj 25
4444
1
nov. 22
1962
1
nov. 22
2180
0
avg. 22
2526