Issue: Column Search broken when using ajax i18n

Issue: Column Search broken when using ajax i18n

sergio_de_la_lunasergio_de_la_luna Posts: 5Questions: 1Answers: 1

I added column search using the following snippet and everything works fine:

    table.columns().every(function(){
        var that = this;
            $( 'input', this.footer() ).on( 'keyup change', function(){
            that.search( this.value ).draw();
        });
    });

However, when I ask Datatables to load i18n resources by ajax, the search is broken:
The text entered in one html search box is replicated in all of them (not visually, but in the request sent to server).

    language: {
        url: "/server/resources/datatables/i18n/en.json",
    }

Thus, when I remove the language object, the search behaves as expected.

Context: server side datatables V1.10.7 / same issue in Firefox and in Chrome on Ubuntu
(Thanks Allan for this superb product)

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.