Support » Plugin: Simple Taxonomy Ordering » Resolve problem with

  • Resolved mateuszbajak

    (@mateuszbajak)


    Hi yikesitskevin πŸ™‚

    It’s a little bug in your plugin when someone add a table to category description. In file simple-taxonomy-ordering/lib/js/yikes-tax-drag-drop.js from line 29 we have:

    // store the updated tax ID
    				jQuery( '#the-list' ).find( 'tr' ).each( function() {
    					var tax_id = jQuery( this ).attr( 'id' ).replace( 'tag-', '' );
    					updated_array.push( [ tax_id, jQuery( this ).index() ] );
    				});

    As I said, when somebody add a table to description then your code try to receive id attribute for new tr tags πŸ™‚ That makes an error. For somebody who has the same problem like this one here is temporary solution:

    // store the updated tax ID
    				jQuery( '#the-list' ).find( 'tr.ui-sortable-handle' ).each( function() {
    					var tax_id = jQuery( this ).attr( 'id' ).replace( 'tag-', '' );
    					updated_array.push( [ tax_id, jQuery( this ).index() ] );
    				});

    Regards,
    Mateusz Bajak

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Resolve problem with’ is closed to new replies.