Skip to content

Commit

Permalink
fc0e19d74da50f4629cc620fddf993a94622d4cd 1.4.1 release
Browse files Browse the repository at this point in the history
Sync to source repo @fc0e19d74da50f4629cc620fddf993a94622d4cd
  • Loading branch information
Allan Jardine committed Mar 10, 2023
1 parent a063bf9 commit 8f6a35f
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/SearchBuilder",
"last-tag": "1.4.0",
"last-sync": "de6f8c99ee28cc8514572b5897e3de2006f2e65f"
"last-sync": "fc0e19d74da50f4629cc620fddf993a94622d4cd"
}
38 changes: 23 additions & 15 deletions js/searchBuilder.bootstrap.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-bs')(root, $);
}

if ( ! $.fn.dataTable.SearchBuilder ) {
require('datatables.net-searchbuilder')(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/searchBuilder.bootstrap.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/searchBuilder.bootstrap.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import $ from 'jquery';
import DataTable from 'datatables.net-bs';
import SearchBuilder from 'datatables.net-searchbuilder';


$.extend(true, DataTable.SearchBuilder.classes, {
clearAll: 'btn btn-default dtsb-clearAll'
});
Expand Down

0 comments on commit 8f6a35f

Please sign in to comment.