jquery-form/form

Access form from error callback

Open

#568 ouverte le 16 janv. 2020

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)JavaScript (2 199 forks)batch import
featurehelp wanted

Métriques du dépôt

Stars
 (5 209 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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?

Guide contributeur