ajax.reload keep inline edit

ajax.reload keep inline edit

wujingjingwujingjing Posts: 10Questions: 4Answers: 1
        table.ajax.reload(null, false);
            console.log('ajax.reload');
    }, 10*1000 );

My table every 10 seconds reload.
If I'm editing while reload,Edit box disappears.

Please see GIF.

Thank you for your help.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin
    Answer ✓

    You'll need to cancel the Ajax reload if editing mode is active. You could do something like:

    if ( ! $('div.DTE').length ) {
      table.ajax.reload( null, false );
    }
    

    Allan

  • wujingjingwujingjing Posts: 10Questions: 4Answers: 1

    Very great, allan, you are like God.
    Although I didn't know how to achieve it,But it worked.

This discussion has been closed.