diff --git a/datatables.json b/datatables.json index 90e8b86..a015763 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.bulma.js b/js/buttons.bulma.js index 05bb59a..61ba2cb 100644 --- a/js/buttons.bulma.js +++ b/js/buttons.bulma.js @@ -28,11 +28,10 @@ require('datatables.net-bm')(root, $); } - if ( ! $.fn.dataTable ) { + if ( ! $.fn.dataTable.Buttons ) { require('datatables.net-buttons')(root, $); } - return factory( $, root, root.document ); }; } diff --git a/js/buttons.bulma.min.js b/js/buttons.bulma.min.js index 8a71781..80b4cc4 100644 --- a/js/buttons.bulma.min.js +++ b/js/buttons.bulma.min.js @@ -1,4 +1,4 @@ /*! Bulma integration for DataTables' Buttons * ©2021 SpryMedia Ltd - datatables.net/license */ -!function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net-bm","datatables.net-buttons"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,(e=e||("undefined"!=typeof window?require("jquery"):require("jquery")(t))).fn.dataTable||require("datatables.net-bm")(t,e),e.fn.dataTable||require("datatables.net-buttons")(t,e),n(e,0,t.document)}:n(jQuery,window,document)}(function(n,t,e,a){"use strict";var o=n.fn.dataTable;return n.extend(!0,o.Buttons.defaults,{dom:{container:{className:"dt-buttons field is-grouped"},button:{className:"button is-light",active:"is-active",disabled:"is-disabled"},collection:{tag:"div",closeButton:!1,className:"dropdown-content",button:{tag:"a",className:"dt-button dropdown-item",active:"is-active",disabled:"is-disabled"}},splitWrapper:{tag:"div",className:"dt-btn-split-wrapper dropdown-trigger buttons has-addons",closeButton:!1},splitDropdownButton:{tag:"button",className:"dt-btn-split-drop-button button is-light",closeButton:!1},splitDropdown:{tag:"button",text:"▼",className:"button is-light",closeButton:!1,align:"split-left",splitAlignClass:"dt-button-split-left"}},buttonCreated:function(t,e){return t.buttons&&(t._collection=n('