Lines 83-96
Link Here
|
83 |
$(document).ready(function() { |
83 |
$(document).ready(function() { |
84 |
var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, { |
84 |
var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, { |
85 |
"aoColumnDefs": [ |
85 |
"aoColumnDefs": [ |
86 |
{ "aTargets": [ 0 ], "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter |
86 |
{ "aTargets": [ 0 ], "bVisible": false, "bSearchable": false }, |
87 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
87 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
88 |
], |
88 |
], |
89 |
"sPaginationType": "four_button" |
89 |
"sPaginationType": "four_button" |
90 |
})); |
90 |
})); |
91 |
$("#show_only_mine").on('click', function(e){ |
91 |
$("#show_only_mine").on('click', function(e){ |
92 |
e.preventDefault(); |
92 |
e.preventDefault(); |
|
|
93 |
//suggestionst.settings()[0].aoColumns[index].bSearchable = true; |
94 |
suggestionst.setColumnSearchable(0, true); |
95 |
suggestionst.rows().invalidate(); |
93 |
suggestionst.fnFilter('^[% loggedinuser | html %]$', 0, true); |
96 |
suggestionst.fnFilter('^[% loggedinuser | html %]$', 0, true); |
|
|
97 |
suggestionst.setColumnSearchable(0, false); |
98 |
suggestionst.rows().invalidate(); |
94 |
}); |
99 |
}); |
95 |
$("#show_all").on('click', function(e){ |
100 |
$("#show_all").on('click', function(e){ |
96 |
e.preventDefault(); |
101 |
e.preventDefault(); |
97 |
- |
|
|