File tree 3 files changed +13
-3
lines changed 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -352,4 +352,5 @@ margin-bottom: 26px;}
352
352
.dataTables_paginate { width : 100% ; text-align : center; margin-top : 10px ; margin-left : -30px ;}
353
353
.dataTables_paginate a { margin-left : 8px ;}
354
354
.dataTables_paginate a : hover { pointer : pointer;}
355
- .navbar-fixed-top { margin-left : 0px ;}
355
+ .navbar-fixed-top { margin-left : 0px ;}
356
+ .widget-search {display : inline-block; vertical-align : middle; margin : 0 6px ; width : 200px ;}
Original file line number Diff line number Diff line change @@ -272,6 +272,9 @@ <h3>Internet Speed</h3>
272
272
< h3 > Processes </ h3 >
273
273
< div id ="refresh-ps " onClick ="javascript:get_ps(); " class ="btn btn-mini ">
274
274
< i class ="icon-refresh "> </ i > Refresh
275
+ </ div >
276
+ < div class ="pull-right ">
277
+ < input type ="text " id ="filter-ps " class ="widget-search " placeholder ="search... " />
275
278
</ div >
276
279
</ div >
277
280
<!-- /widget-header -->
Original file line number Diff line number Diff line change 54
54
$ . get ( "sh/ps.php" , function ( data ) {
55
55
56
56
destroy_dataTable ( 'ps_dashboard' ) ;
57
+ $ ( '#filter-ps' ) . val ( '' ) . off ( 'keyup' ) ;
57
58
58
- $ ( '#ps_dashboard' ) . dataTable ( {
59
+ var psTable = $ ( '#ps_dashboard' ) . dataTable ( {
59
60
"aaData" : data ,
60
61
"aoColumns" : [
61
62
{ "sTitle" :"USER" , "mDataProp" :null } ,
72
73
] ,
73
74
"bPaginate" : true ,
74
75
"sPaginationType" : "full_numbers" ,
75
- "bFilter" : false ,
76
+ "bFilter" : true ,
77
+ "sDom" : "lrtip" ,
76
78
"bAutoWidth" : false ,
77
79
"bInfo" : false
78
80
} ) . fadeIn ( ) ;
81
+
82
+ $ ( '#filter-ps' ) . on ( 'keyup' , function ( ) {
83
+ psTable . fnFilter ( this . value ) ;
84
+ } ) ;
79
85
} , "json" ) ;
80
86
81
87
}
You can’t perform that action at this time.
0 commit comments