Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4285 Vizualizări

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
iul. 20
6214
1
mai 25
4421
1
nov. 22
1946
1
nov. 22
2156
0
aug. 22
2505