File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
- /*! Checkboxes 1.2.3
1
+ /*! Checkboxes 1.2.4
2
2
* Copyright (c) Gyrocode (www.gyrocode.com)
3
3
* License: MIT License
4
4
*/
5
5
6
6
/**
7
7
* @summary Checkboxes
8
8
* @description Checkboxes extension for jQuery DataTables
9
- * @version 1.2.3
9
+ * @version 1.2.4
10
10
* @file dataTables.checkboxes.js
11
11
* @author Gyrocode (http://www.gyrocode.com/projects/jquery-datatables-checkboxes/)
12
12
* @contact http://www.gyrocode.com/contacts
@@ -162,6 +162,16 @@ Checkboxes.prototype = {
162
162
// WORKAROUND: Detach all event handlers for this column
163
163
$colHeader . off ( '.dt' ) ;
164
164
165
+ // If table has data source other than Ajax
166
+ if ( ctx . sAjaxSource === null ) {
167
+ // WORKAROUND: Invalidate column data
168
+ var cells = dt . cells ( 'tr' , i ) ;
169
+ cells . invalidate ( 'data' ) ;
170
+
171
+ // WORKAROUND: Add required class to existing cells
172
+ $ ( cells . nodes ( ) ) . addClass ( colOptions [ 'className' ] ) ;
173
+ }
174
+
165
175
166
176
//
167
177
// DATA
You can’t perform that action at this time.
0 commit comments