Sha256: 16d7527c98f016166b537029b64331b590359bcaa960bc549116110c7c245674

Contents?: true

Size: 693 Bytes

Versions: 9

Compression:

Stored size: 693 Bytes

Contents

$(document).on('turbolinks:load', function () {
  $('.select-2').select2({
    theme: "bootstrap-5",
  });
  flatpickr("[data-behaviour='date-only']", {
    dateFormat: "d-m-Y"
  })
  flatpickr("[data-behaviour='date-time']", {
    enableTime: true
  })
  flatpickr("[data-behaviour='filter'][data-filter-type='date']", {
    mode: 'range'
  })
  var el = document.getElementsByClassName('columns-list')
  if(el[0]) {
    Sortable.create(el[0],{
      handle: '.dragger',
      animation: 150
    });
  }
  var headerElemHeight = $('.page-top-bar').height() + 64
  var calculatedHeight = "calc(100vh - " + headerElemHeight+"px"+")"
  $('.table-wrapper').css("maxHeight", calculatedHeight);
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cm-admin-1.3.9 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.3.8 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.3.7 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.3.6 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.3.5 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.3.4 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.3.3 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.3.2 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.3.1 app/javascript/packs/cm_admin/scaffolds.js