Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4313 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
čvc 20
6236
1
kvě 25
4431
1
lis 22
1957
1
lis 22
2176
0
srp 22
2517