Enormousness requests to server

Enormousness requests to server

LeonKLeonK Posts: 13Questions: 5Answers: 1

editor.dependent( 'position', '/ajax/update-position' );

Generates multiple request to server during initial table draw. Without call to edit/update dialog.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Answer ✓

    Is position an select field by any chance? If so, I'm afraid there is a bug in 1.5.3 which causes it to trigger a change event for every option in the list!

    This is fixed and will be included in 1.5.4 which will be available tomorrow.

    Allan

  • LeonKLeonK Posts: 13Questions: 5Answers: 1

    Thank you!
    Meanwhile workaround is

            editor.dependent( '#{field}', function ( val, data, callback ) {
            if( !data.rows ){ return; }
    
            $.ajax({
    
This discussion has been closed.