From 4f582f01dec1aca15b618c6c307202177b31e17b Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 15 Nov 2022 11:21:06 +0000 Subject: [PATCH] d145c8bc5c29bf3931bdbd7deca9d875d085d865 Sync to source repo @d145c8bc5c29bf3931bdb7deca9d875d085d865 --- datatables.json | 2 +- js/buttons.dataTables.js | 3 +-- js/buttons.dataTables.min.js | 2 +- js/buttons.dataTables.min.mjs | 2 +- js/buttons.dataTables.mjs | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/datatables.json b/datatables.json index 0f6cfe6..261c087 100644 --- a/datatables.json +++ b/datatables.json @@ -15,5 +15,5 @@ ], "src-repo": "http://github.com/DataTables/Buttons", "last-tag": "2.3.2", - "last-sync": "d145c8bc5c29bf3931bdbd7deca9d875d085d865" + "last-sync": "d145c8bc5c29bf3931bdb7deca9d875d085d865" } \ No newline at end of file diff --git a/js/buttons.dataTables.js b/js/buttons.dataTables.js index dce213b..a93ad61 100644 --- a/js/buttons.dataTables.js +++ b/js/buttons.dataTables.js @@ -28,11 +28,10 @@ require('datatables.net-dt')(root, $); } - if ( ! $.fn.dataTable ) { + if ( ! $.fn.dataTable.Buttons ) { require('datatables.net-buttons')(root, $); } - return factory( $, root, root.document ); }; } diff --git a/js/buttons.dataTables.min.js b/js/buttons.dataTables.min.js index 418e244..cfbd4a7 100644 --- a/js/buttons.dataTables.min.js +++ b/js/buttons.dataTables.min.js @@ -1,4 +1,4 @@ /*! DataTables styling wrapper for Buttons * ©2018 SpryMedia Ltd - datatables.net/license */ -!function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-buttons"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e=e||window,(t=t||("undefined"!=typeof window?require("jquery"):require("jquery")(e))).fn.dataTable||require("datatables.net-dt")(e,t),t.fn.dataTable||require("datatables.net-buttons")(e,t),n(t,e,e.document)}:n(jQuery,window,document)}(function(e,n,t,a){"use strict";var u,e=e.fn.dataTable;return u=function(e,t,n,a){return e.fn.dataTable},"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-buttons"],function(e){return u(e)}):"object"==typeof exports?module.exports=function(e,t){return e=e||n,(t=t&&t.fn.dataTable?t:require("datatables.net-dt")(e,t).$).fn.dataTable.Buttons||require("datatables.net-buttons")(e,t),u(t,0,e.document)}:u(jQuery),e}); \ No newline at end of file +!function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-buttons"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e=e||window,(t=t||("undefined"!=typeof window?require("jquery"):require("jquery")(e))).fn.dataTable||require("datatables.net-dt")(e,t),t.fn.dataTable.Buttons||require("datatables.net-buttons")(e,t),n(t,e,e.document)}:n(jQuery,window,document)}(function(e,n,t,a){"use strict";var u,e=e.fn.dataTable;return u=function(e,t,n,a){return e.fn.dataTable},"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-buttons"],function(e){return u(e)}):"object"==typeof exports?module.exports=function(e,t){return e=e||n,(t=t&&t.fn.dataTable?t:require("datatables.net-dt")(e,t).$).fn.dataTable.Buttons||require("datatables.net-buttons")(e,t),u(t,0,e.document)}:u(jQuery),e}); \ No newline at end of file diff --git a/js/buttons.dataTables.min.mjs b/js/buttons.dataTables.min.mjs index 176973c..c484bc6 100644 --- a/js/buttons.dataTables.min.mjs +++ b/js/buttons.dataTables.min.mjs @@ -1,4 +1,4 @@ /*! DataTables styling wrapper for Buttons * ©2018 SpryMedia Ltd - datatables.net/license */ -import $ from"jquery";import DataTable from"datatables.net-dt";import"datatables.net-buttons";!function(a){"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-buttons"],function(t){return a(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,(e=e&&e.fn.dataTable?e:require("datatables.net-dt")(t,e).$).fn.dataTable.Buttons||require("datatables.net-buttons")(t,e),a(e,0,t.document)}:a(jQuery,window,document)}(function(t,e,a,n){return t.fn.dataTable});export default DataTable; \ No newline at end of file +import $ from"jquery";import DataTable from"datatables.net-dt";import Buttons from"datatables.net-buttons";!function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-buttons"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,(e=e&&e.fn.dataTable?e:require("datatables.net-dt")(t,e).$).fn.dataTable.Buttons||require("datatables.net-buttons")(t,e),n(e,0,t.document)}:n(jQuery,window,document)}(function(t,e,n,a){return t.fn.dataTable});export default DataTable; \ No newline at end of file diff --git a/js/buttons.dataTables.mjs b/js/buttons.dataTables.mjs index f753e1d..7211b95 100644 --- a/js/buttons.dataTables.mjs +++ b/js/buttons.dataTables.mjs @@ -4,7 +4,7 @@ import $ from 'jquery'; import DataTable from 'datatables.net-dt'; -import 'datatables.net-buttons'; +import Buttons from 'datatables.net-buttons';