AJAX call not firing after drag and drop row reorder

AJAX call not firing after drag and drop row reorder

tannerndtannernd Posts: 1Questions: 1Answers: 0

Hello,

Has anyone experienced an issue after changing the order (drag and drop) the AJAX call fails to fire?

I have the correct editor object listed (with the correct AJAX info) and the editor works perfectly when using the form.. The dataSrc is also correct. I am able to perform the drag and drop, but since no data is being sent via AJAX, the order numbers do not change (i.e. number 1 is shown below number 2)

rowReorder: {
            dataSrc: 'view_order',
            editor:  editor_inc_groups,
            selector: 'td:last-child'
        }

Additionally, I tired using submit on the row-reorder event, but still no AJAX call.

table_inc_groups.on( 'row-reorder', function ( e, details, changes ) {
        editor_inc_groups
            .edit( changes.nodes, false, {
                submit: 'changed'
            } )
            .multiSet( changes.dataSrc, changes.values )
            .submit();
    } );

I logged the change data to the console and it is showing correctly, it just will not submit the AJAX call.

Any ideas would be appreciated.

Thanks

Answers

  • allanallan Posts: 52,624Questions: 1Answers: 8,050 Site admin

    The rowReorder.editor option is all you should really need as show in this example. Can you give me a link to your page so I can take a look and see what is going on please?

    Thanks,
    Allan

Sign In or Register to comment.