DataTables logo DataTables

via Ad Packs
Ajax data source and cancelled first draw
  • Hi,

    I have noticed that when DataTables is initialised with an Ajax source and the first draw is cancelled by the fnPreDrawCallback function the oLanguage.sProcessing text is left on the screen. To remedy this I have modified the following part of the code
    /* Okay to show that something is going on now */
    _fnProcessingDisplay(oSettings, true);
    
    into this
    /* Okay to show that something is going on now */
    _fnProcessingDisplay(oSettings, oSettings.sAjaxSource === null);
    
    I was hoping you could add this fix to the next release of DataTables.

    JKay
  • 2 Comments sorted by
  • Hi JKay,

    Thanks for pointing this out. I think its a more general error that just with Ajax source set and on the first draw. Basically the processing display wouldn't be hidden when the draw was cancelled with fnPreDrawCallback . I've just committed a fix for this which you can download from the downloads page. Working example: http://live.datatables.net/imitiy/edit#source

    Allan
  • Hi Allan,

    Thanks for fixing this issue. Keep up the good work :)

    JKay

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support

Get useful and friendly help straight from the source.

In this Discussion