Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3772 Tampilan

Hi,

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

Thank you very much!

Avatar
Buang
Penulis Jawaban Terbai

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

});

Avatar
Buang