gopendra-dwivedi / jquery-datatables-column-filter

Automatically exported from code.google.com/p/jquery-datatables-column-filter
0 stars 0 forks source link

Trim the label text #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
 function fnCreateInput(regex, smart, bIsNumber) {
        var sCSSClass = "text_filter";
        if (bIsNumber)
            sCSSClass = "number_filter";
        var input = $('<input type="text" class="search_init ' + sCSSClass + '" value="' + label + '"/>');

=====>

 function fnCreateInput(regex, smart, bIsNumber) {
        var sCSSClass = "text_filter";
        if (bIsNumber)
            sCSSClass = "number_filter";
        label = label.replace(/(^\s*)|(\s*$)/g, "");
        var input = $('<input type="text" class="search_init ' + sCSSClass + '" value="' + label + '"/>');

Original issue reported on code.google.com by shoots...@gmail.com on 30 Aug 2011 at 2:51

GoogleCodeExporter commented 9 years ago

Original comment by joc...@gmail.com on 24 Sep 2011 at 9:54

GoogleCodeExporter commented 9 years ago
Hi,

This is changed in the latest version of plugin 1.2.2.

Thanks,
Jovan

Original comment by joc...@gmail.com on 24 Sep 2011 at 10:53