dist/toolkit.js
function() {
        var form = this.element.find('form:first');

        if (!form) {
            return;
        }

        this.fireEvent('submit', [form]);

        var options = {
            url: form.attr('action'),
            type: (form.attr('method') || 'post').toUpperCase()
        };

        if (window.FormData) {
            options.processData = false;
            options.contentType = false;
            options.data = new FormData(form[0]);
        } else {
            options.data = form.serialize();
        }

        this.requestData(options);
    }
function() {
        var form = this.element.find('form:first');

        if (!form) {
            return;
        }

        this.fireEvent('submit', [form]);

        var options = {
            url: form.attr('action'),
            type: (form.attr('method') || 'post').toUpperCase()
        };

        if (window.FormData) {
            options.processData = false;
            options.contentType = false;
            options.data = new FormData(form[0]);
        } else {
            options.data = form.serialize();
        }

        this.requestData(options);
    }
function ( ) { var form = this . element . find ( 'form:first' ) ; if ( ! form ) { return ; } this . fireEvent ( 'submit' , [ form ] ) ; var options = { url : form . attr ( 'action' ) , type : ( form . attr ( 'method' ) || 'post' ) . toUpperCase ( ) } ; if ( window . FormData ) { options . processData = false ; options . contentType = false ; options . data = new FormData ( form [ 0 ] ) ; } else { options . data = form . serialize ( ) ; } this . requestData ( options ) ; }
Submit the form found within the modal.
Submit the form found within the modal .