Sha256: 30c27e207983635bd1c0e3518ef997f357e43f2041c9fc1b9439126272d6705b
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
(function() { var destroySelect2s, logEvent; $.extend(true, $.fn.dataTable.Buttons.defaults, { dom: { button: { className: 'btn btn-outline-primary btn-sm' } } }); $.extend(true, $.fn.dataTable.ext.classes, { sProcessing: "dataTables_processing card overlay-wrapper" }); destroySelect2s = function() { $('.effective-datatables-filters').find('select').select2('destroy'); return $('.dataTables_wrapper').each(function(_, o) { try { return $(o).find('.dataTables_length select.select2-hidden-accessible').addClass('no-select2').removeAttr('name').select2('destroy'); } catch (error) {} }); }; logEvent = function(e) { return console.log(e); }; $(document).ready(function(e) { return destroySelect2s(); }); $(document).on('page:change', function() { return destroySelect2s(); }); // $(document).ready(function(e) { // return $('.effective-datatables-filters input').click(function() { // var $form, $table; // $form = $(event.currentTarget).closest('.effective-datatables-filters'); // $table = $('#' + $form.attr('aria-controls')); // return $table.DataTable().draw(); // }); // }); }).call(this);
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
five-two-nw-olivander-0.2.0.39 | app/assets/javascripts/adminlte/datatable.fix.js |
five-two-nw-olivander-0.2.0.38 | app/assets/javascripts/adminlte/datatable.fix.js |