Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3783 Visualizzazioni

Hi,

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

Thank you very much!

Avatar
Abbandona
Autore Risposta migliore

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
Abbandona