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

Hi,

I would like to know if a unlink from javascript passed well or if there is an exception.

Thank you very much!

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

The unlink function return the model.call. To know if there is a problem, you have to do this:

this.dataset.unlink(id).fail(function(){

// fail action

});

Ảnh đại diện
Huỷ bỏ