Sha256: 05bb4fa6ab41322c2a3ed14fe352821b6c1d16d6afcacd6321ee22572b1a94ae

Contents?: true

Size: 1.13 KB

Versions: 33

Compression:

Stored size: 1.13 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).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

33 entries across 33 versions & 1 rubygems

Version Path
five-two-nw-olivander-0.2.0.15 app/assets/javascripts/adminlte/datatable.fix.js
five-two-nw-olivander-0.2.0.14 app/assets/javascripts/adminlte/datatable.fix.js
five-two-nw-olivander-0.2.0.13 app/assets/javascripts/adminlte/datatable.fix.js
five-two-nw-olivander-0.2.0.12 app/assets/javascripts/adminlte/datatable.fix.js
five-two-nw-olivander-0.2.0.11 app/assets/javascripts/adminlte/datatable.fix.js
five-two-nw-olivander-0.2.0.10 app/assets/javascripts/adminlte/datatable.fix.js
five-two-nw-olivander-0.2.0.9 app/assets/javascripts/adminlte/datatable.fix.js
five-two-nw-olivander-0.2.0.8 app/assets/javascripts/adminlte/datatable.fix.js
five-two-nw-olivander-0.2.0.7 app/assets/javascripts/adminlte/datatable.fix.js
five-two-nw-olivander-0.2.0.6 app/assets/javascripts/adminlte/datatable.fix.js
five-two-nw-olivander-0.2.0.5 app/assets/javascripts/adminlte/datatable.fix.js
five-two-nw-olivander-0.2.0.4 app/assets/javascripts/adminlte/datatable.fix.js
five-two-nw-olivander-0.2.0.3 app/assets/javascripts/adminlte/datatable.fix.js