跳至内容
菜单
此问题已终结
4295 查看

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.

形象
丢弃
相关帖文 回复 查看 活动
3
7月 20
6216
1
5月 25
4425
1
11月 22
1955
1
11月 22
2164
0
8月 22
2508