Skip to content

Commit

Permalink
c0ce909a29e2dfe354b85597177b72b069b6354c Dev: Moving on version
Browse files Browse the repository at this point in the history
Sync to source repo @c0ce909a29e2dfe354b85597177b72b069b6354c
  • Loading branch information
AllanJard committed Mar 3, 2023
1 parent 48f356f commit fdb2b8a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
],
"src-repo": "http://github.com/DataTables/Buttons",
"last-tag": "2.3.5",
"last-sync": "0b1fd42649697aed4f72490eb3c702ded00d79dd"
"last-sync": "c0ce909a29e2dfe354b85597177b72b069b6354c"
}
38 changes: 23 additions & 15 deletions js/buttons.bootstrap5.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,37 @@
}
else if ( typeof exports === 'object' ) {
// CommonJS
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
// root. This will give an error otherwise
root = window;
}

if ( ! $ ) {
$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window
require('jquery') :
require('jquery')( root );
}

var jq = require('jquery');
var cjsRequires = function (root, $) {
if ( ! $.fn.dataTable ) {
require('datatables.net-bs5')(root, $);
}

if ( ! $.fn.dataTable.Buttons ) {
require('datatables.net-buttons')(root, $);
}

return factory( $, root, root.document );
};

if (typeof window !== 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
// root. This will give an error otherwise
root = window;
}

if ( ! $ ) {
$ = jq( root );
}

cjsRequires( root, $ );
return factory( $, root, root.document );
};
}
else {
cjsRequires( window, jq );
module.exports = factory( jq, window, window.document );
}
}
else {
// Browser
Expand Down
2 changes: 1 addition & 1 deletion js/buttons.bootstrap5.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion js/buttons.bootstrap5.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import DataTable from 'datatables.net-bs5';
import Buttons from 'datatables.net-buttons';



$.extend( true, DataTable.Buttons.defaults, {
dom: {
container: {
Expand Down

0 comments on commit fdb2b8a

Please sign in to comment.