• Resolved bebablub

    (@bebablub)


    I am running

    MLA 3.30
    WordPress 6.9
    PHP 8.3

    Whats the problem?
    Goto: Media -> Add Media File -> Open bulk edit area and click on select at Parent Id
    Select a valid a valid post. The Update button stays disabled.

    Whats expected?
    Under the above conditions it should be enabled. It was working a few months ago. There are no console errors shown.

    Is there a workaround?
    Yes just goto the element in browser debug and remove the disabled html attribute. Probably this could also be a permissions issue. But i dont see where i could get more permissions.

    Would be great if you could have a look.

    Thank you!

    Best regards
    Benjamin

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bebablub

    (@bebablub)

    I have a potential fix for the current dev version
    file: js\mla-set-parent-scripts.js
    starting from line 87

    			// Enable whole row to be clicked
    $( '#mla-set-parent-inside-div' ).on( 'click', 'tr', function() {
    $( this ).find( '.found-radio input' ).prop( 'checked', true );
    $( '#mla-set-parent-submit' ).prop( 'disabled', false );
    });

    // Enable Update button when a radio button is selected directly
    $( '#mla-set-parent-response-div' ).on( 'change', 'input[type="radio"]', function() {
    $( '#mla-set-parent-submit' ).prop( 'disabled', false );
    });

    starting from line 202 (when preselected)

    			// Enable whole row to be clicked
    $( '#mla-set-parent-inside-div' ).on( 'click', 'tr', function() {
    $( this ).find( '.found-radio input' ).prop( 'checked', true );
    $( '#mla-set-parent-submit' ).prop( 'disabled', false );
    });

    // Enable Update button when a radio button is selected directly
    $( '#mla-set-parent-response-div' ).on( 'change', 'input[type="radio"]', function() {
    $( '#mla-set-parent-submit' ).prop( 'disabled', false );
    });

    and finally when dialog is closed reset state starting from line 138

    		close: function() {
    $( '#mla-set-parent-input' ).val('');
    $( '#mla-set-parent-post-type' ).val('all');
    $( '#mla-set-parent-response-div' ).html('');
    $( '#mla-set-parent-div' ).hide();
    $( '#mla-set-parent-overlay' ).hide();
    $( '#mla-set-parent-submit' ).prop( 'disabled', true );
    },
    sgclark

    (@sgclark)

    Also experiencing this bug. I’ve tested it on Firefox and Brave and it does not work on either.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your report and for taking the time to dig through the code and propose a fix. It looks like this is caused by some new WordPress core logic, possibly in WP 6.9.

    I have added a somewhat simpler fix (unconditionally enable the buttons) in my code and I will be releasing a new MLA version 3.31 shortly. I will update this topic at that time. Thanks for your patience.

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA v3.31, which contains the fix for this topic and several other updates.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding the fix. Thank you for your patience!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.