Skip to Content
Menú
This question has been flagged
4305 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
3
de jul. 20
6218
1
de maig 25
4427
1
de nov. 22
1955
1
de nov. 22
2173
0
d’ag. 22
2514