select.bootstrap4.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*! Bootstrap 4 styling wrapper for Select
  2. * © SpryMedia Ltd - datatables.net/license
  3. */
  4. (function( factory ){
  5. if ( typeof define === 'function' && define.amd ) {
  6. // AMD
  7. define( ['jquery', 'datatables.net-bs4', 'datatables.net-select'], function ( $ ) {
  8. return factory( $, window, document );
  9. } );
  10. }
  11. else if ( typeof exports === 'object' ) {
  12. // CommonJS
  13. module.exports = function (root, $) {
  14. if ( ! root ) {
  15. // CommonJS environments without a window global must pass a
  16. // root. This will give an error otherwise
  17. root = window;
  18. }
  19. if ( ! $ ) {
  20. $ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window
  21. require('jquery') :
  22. require('jquery')( root );
  23. }
  24. if ( ! $.fn.dataTable ) {
  25. require('datatables.net-bs4')(root, $);
  26. }
  27. if ( ! $.fn.dataTable.select ) {
  28. require('datatables.net-select')(root, $);
  29. }
  30. return factory( $, root, root.document );
  31. };
  32. }
  33. else {
  34. // Browser
  35. factory( jQuery, window, document );
  36. }
  37. }(function( $, window, document, undefined ) {
  38. 'use strict';
  39. var DataTable = $.fn.dataTable;
  40. return DataTable;
  41. }));