Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4310 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 7 20
6219
1
thg 5 25
4429
1
thg 11 22
1955
1
thg 11 22
2173
0
thg 8 22
2515