AJAX call not firing after drag and drop row reorder

AJAX call not firing after drag and drop row reorder

tannerndtannernd Posts: 3Questions: 2Answers: 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: 63,569Questions: 1Answers: 10,481 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

This discussion has been closed.