33 (
function(window, document, undefined) {
36 var factory =
function( $, DataTable ) {
46 if ( typeof $.fn.dataTable ==
"function" &&
47 typeof $.fn.dataTableExt.fnVersionCheck ==
"function" &&
48 $.fn.dataTableExt.fnVersionCheck(
'1.9.0') )
50 $.fn.dataTableExt.aoFeatures.push( {
51 "fnInit":
function( oDTSettings ) {
52 var oOpts = typeof oDTSettings.oInit.oTableTools !=
'undefined' ?
53 oDTSettings.oInit.oTableTools : {};
55 var oTT =
new TableTools( oDTSettings.oInstance, oOpts );
56 TableTools._aInstances.push( oTT );
58 return oTT.dom.container;
61 "sFeature":
"TableTools"
66 alert(
"Warning: TableTools 2 requires DataTables 1.9.0 or newer - www.datatables.net/download");
70 $.fn.dataTable.TableTools = TableTools;
71 $.fn.DataTable.TableTools = TableTools;
79 if ( typeof define ===
'function' && define.amd ) {
80 define( [
'jquery',
'datatables'], factory );
82 else if ( typeof exports ===
'object' ) {
84 factory( require(
'jquery'), require(
'datatables') );
86 else if ( jQuery && !jQuery.fn.dataTable.TableTools ) {
88 factory( jQuery, jQuery.fn.dataTable );