jquery-form/form

Access form from error callback

Open

#568 创建于 2020年1月16日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (5,209 star) (2,199 fork)batch import
featurehelp wanted

描述

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?

贡献者指南

Access form from error callback · jquery-form/form#568 | Good First Issue