diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..8025be3 --- /dev/null +++ b/bower.json @@ -0,0 +1,11 @@ +{ + "name": "datatables.plugins", + "version": "0.1", + "main": [ + "integration/bootstrap/3/dataTables.bootstrap.css", + "integration/bootstrap/3/dataTables.bootstrap.js" + ], + "dependencies": { + "datatables": ">=1.10" + } +} diff --git a/integration/bootstrap/3/dataTables.bootstrap.js b/integration/bootstrap/3/dataTables.bootstrap.js index de5177f..70f1da0 100644 --- a/integration/bootstrap/3/dataTables.bootstrap.js +++ b/integration/bootstrap/3/dataTables.bootstrap.js @@ -1,3 +1,12 @@ +(function(o_o) { + if (typeof define === 'function' && define.amd) { + require(['jquery', 'datatables'], function($) { o_o($) }) + } else { + o_o(window.jQuery) + } +}(function($) { + + /* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": @@ -249,3 +258,4 @@ if ( $.fn.DataTable.TableTools ) { } ); } +}));