##// END OF EJS Templates
admin: fixed search in user admin page
marcink -
r1090:276bfa3c default
parent child Browse files
Show More
@@ -50,16 +50,18 b''
50 $.fn.dataTable.ext.search.push(
50 $.fn.dataTable.ext.search.push(
51 function( settings, data, dataIndex ) {
51 function( settings, data, dataIndex ) {
52 var query = $('#q_filter').val();
52 var query = $('#q_filter').val();
53 var username = data[1];
53
54 var email = data[2];
54 var username = data[0];
55 var first_name = data[3];
55 var email = data[1];
56 var last_name = data[4];
56 var first_name = data[2];
57 var last_name = data[3];
57
58
58 var query_str = username + " " +
59 var query_str = username + " " +
59 email + " " +
60 email + " " +
60 first_name + " " +
61 first_name + " " +
61 last_name;
62 last_name;
62 if((query_str).indexOf(query) !== -1){
63
64 if ((query_str).indexOf(query) !== -1) {
63 return true;
65 return true;
64 }
66 }
65 return false;
67 return false;
General Comments 0
You need to be logged in to leave comments. Login now