File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1194
1194
this . renderError ( el , err ) ;
1195
1195
} ,
1196
1196
renderValue : function ( el , data ) {
1197
+ var $el = $ ( el ) ;
1197
1198
var header = data . colnames . map ( function ( x ) {
1198
1199
return '<th>' + x + '</th>' ;
1199
1200
} ) . join ( '' ) ;
1204
1205
footer = '<tfoot>' + footer + '</tfoot>' ;
1205
1206
var content = '<table class="table table-striped table-hover">' +
1206
1207
header + footer + '</table>' ;
1207
- $ ( el ) . append ( content ) ;
1208
+ $el . append ( content ) ;
1208
1209
var oTable = $ ( el ) . children ( "table" ) . dataTable ( $ . extend ( {
1209
1210
"bProcessing" : true ,
1210
1211
"bServerSide" : true ,
1214
1215
"sAjaxSource" : data . action
1215
1216
} , data . options ) ) ;
1216
1217
// use debouncing for searching boxes
1217
- $ ( el ) . find ( 'label input' ) . first ( ) . unbind ( 'keyup' )
1218
+ $el . find ( 'label input' ) . first ( ) . unbind ( 'keyup' )
1218
1219
. keyup ( debounce ( data . searchDelay , function ( ) {
1219
1220
oTable . fnFilter ( this . value ) ;
1220
1221
} ) ) ;
1221
- var searchInputs = $ ( el ) . find ( "tfoot input" ) ;
1222
+ var searchInputs = $el . find ( "tfoot input" ) ;
1222
1223
searchInputs . keyup ( debounce ( data . searchDelay , function ( ) {
1223
1224
oTable . fnFilter ( this . value , searchInputs . index ( this ) ) ;
1224
1225
} ) ) ;
You can’t perform that action at this time.
0 commit comments