Sha256: da5971ec4ed4cdb13514cda61dbaffcf36f2c72f8f2cb18356f7c8900b8efd54
Contents?: true
Size: 1.36 KB
Versions: 9
Compression:
Stored size: 1.36 KB
Contents
$(document).ready(function(e) { $('.select-2').select2(); flatpickr("[data-behaviour='date-only']", {}) flatpickr("[data-behaviour='date-time']", { enableTime: true }) flatpickr("[data-behaviour='filter'][data-filter-type='date']", { mode: 'range' }) Sortable.create($('.columns-list')[0],{ handle: '.dragger', animation: 150 }); }); $(document).on("keypress keyup blur", "[data-behaviour='decimal-only'], [data-behaviour='filter'][data-filter-type='range']", function (e) { var charCode = (e.which) ? e.which : e.keyCode if (charCode > 31 && (charCode != 46 &&(charCode < 48 || charCode > 57))) return false; return true; }); $(document).on("keypress keyup blur", "[data-behaviour='integer-only']", function (event) { $(this).val($(this).val().replace(/[^\d].+/, "")); if ((event.which < 48 || event.which > 57)) { event.preventDefault(); } }); $(document).on('click', '.row-action-cell', function(e) { e.stopPropagation(); if ($(this).hasClass('opacity-1')) { $('.row-action-cell').removeClass('opacity-1') } else { $('.row-action-cell').removeClass('opacity-1') $(this).addClass('opacity-1'); } if ($(this).find('.table-export-popup').hasClass('hidden')) { return $(this).find('.table-export-popup').removeClass('hidden'); } else { return $(this).find('.table-export-popup').addClass('hidden'); } });
Version data entries
9 entries across 9 versions & 1 rubygems