jquery-form/form

Access form from error callback

Open

#568 aperta il 16 gen 2020

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (2199 fork)batch import
featurehelp wanted

Metriche repository

Star
 (5209 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description:

Seem that error callback has not $form object to access it.

For example other callback have it, like:

        beforeSerialize: function($form, options) {
            // do something with $form
        },
       success: function(responseText, statusText, xhr, $form) {
            // do something with $form
       }

But error has only:

               error: function (xhr, status, error) {
                   // No $form object
                },

Expected Behavior:

               error: function (xhr, status, error, $form) {
                   // has $form now
                },

Or am I missing something?

Guida contributor