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
AllanJard committed Mar 10, 2023
1 parent 0a59283 commit 66873d4
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.bulma.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-bm')(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.bulma.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.bulma.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-bm';
import SearchBuilder from 'datatables.net-searchbuilder';


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

0 comments on commit 66873d4

Please sign in to comment.