dropdown-toggle Not populating after first page

dropdown-toggle Not populating after first page

UliUli Posts: 1Questions: 1Answers: 0

First off - these datatables are fantastic. Thank you for all of the hard work.

My issue though - I am using dropdown-toggle action buttons of which the span is populated with data-localize from a .json file.
This works perfectly on the first page, but no go on anything thereafter.

I've read forums and code through the night but I can't seem to get it working.

document ready looks like so:

$(document).ready(function(){
    var dtInstance = $('#dbTable').dataTable({
        'paging':   true,
        'ordering': true,
        'info':     true,
        'dom':      '<"top"i>rt<"bottom"flp><"clear">',
        'bFilter':  true
    });

and the buttons in question:

<button class="btn btn-raised btn-w-lg btn-primary dropdown-toggle ui-wave" type="button" id="MA'.$value['id'].'" data-toggle="dropdown" aria-expanded="true"><i class="fa fa-cogs"></i>&nbsp;&nbsp;<span data-localize="add"></span>&nbsp;&nbsp;<span class="caret"></span></button>

The Action button is populated on the first page and the class works fine, but the span is just not populated no matter what I do.

Any help would be greatly appreciated!

This discussion has been closed.