• Resolved brofar

    (@brofar)


    Hey,

    When I use this plugin as part of a list element, there’s a bug.

    Here is how to replicate:

    1. When a user is filling the form with a list element that contains the AJAX upload, they click the “+” symbol to add a new row.
    2. let’s say they clicked the + by accident, so in the second row, they do not upload a photo and click the – symbol to remove the row
    3. They are presented with a javascript error “jqXHR is undefined” and are unable to delete the second row

    Solution:

    Edit gravity-forms-ajax-upload.php
    Line: 325

    Old:
    jqXHR.abort( row );

    New:

    if(typeof jqXHR !== "undefined")
    {
    	jqXHR.abort( row );
    }

    This fixed the issue for me.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘jqXHR undefined javascript error when deleting an empty row form list’ is closed to new replies.