Skip to content

Commit cbb829b

Browse files
committed
Fix: Remove legacy TableTools integration from Bootstrap file
Sync to source repo @f8c7bb55b5307de0185254367d69db00581574bd
1 parent 0725d24 commit cbb829b

File tree

3 files changed

+5
-44
lines changed

3 files changed

+5
-44
lines changed

datatables.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"js/dataTables.bootstrap.min.js"
99
],
1010
"src-repo": "http://github.com/DataTables/DataTablesSrc",
11-
"last-sync": "d52c41088043db962e65b26e658d1be686a4e160",
11+
"last-sync": "f8c7bb55b5307de0185254367d69db00581574bd",
1212
"last-tag": "1.10.10"
1313
}

js/dataTables.bootstrap.js

-38
Original file line numberDiff line numberDiff line change
@@ -178,43 +178,5 @@ DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, bu
178178
};
179179

180180

181-
/*
182-
* TableTools Bootstrap compatibility
183-
* Required TableTools 2.1+
184-
*/
185-
if ( DataTable.TableTools ) {
186-
// Set the classes that TableTools uses to something suitable for Bootstrap
187-
$.extend( true, DataTable.TableTools.classes, {
188-
"container": "DTTT btn-group",
189-
"buttons": {
190-
"normal": "btn btn-default",
191-
"disabled": "disabled"
192-
},
193-
"collection": {
194-
"container": "DTTT_dropdown dropdown-menu",
195-
"buttons": {
196-
"normal": "",
197-
"disabled": "disabled"
198-
}
199-
},
200-
"print": {
201-
"info": "DTTT_print_info"
202-
},
203-
"select": {
204-
"row": "active"
205-
}
206-
} );
207-
208-
// Have the collection use a bootstrap compatible drop down
209-
$.extend( true, DataTable.TableTools.DEFAULTS.oTags, {
210-
"collection": {
211-
"container": "ul",
212-
"button": "li",
213-
"liner": "a"
214-
}
215-
} );
216-
}
217-
218-
219181
return DataTable;
220182
}));

js/dataTables.bootstrap.min.js

+4-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)