Sha256: 12acc2203c7f6cb08efaea7aa3d0ba0e1878985d0dad3be8f0aecea791e7d41c
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
// Custom jQuery // ----------------------------------- (function(window, document, $, undefined){ $(function(){ $('[data-check-all]').on('change', function() { var $this = $(this), index= $this.index() + 1, checkbox = $this.find('input[type="checkbox"]'), table = $this.parents('table'); // Make sure to affect only the correct checkbox column table.find('tbody > tr > td:nth-child('+index+') input[type="checkbox"]') .prop('checked', checkbox[0].checked); }); }); })(window, document, window.jQuery);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radius-rails-3.1.4 | app/assets/javascripts/radius-theme/modules/table-checkall.js |