Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4315 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
jul. 20
6236
1
mei 25
4431
1
nov. 22
1957
1
nov. 22
2176
0
aug. 22
2517