Sha256: 43e9dbca113b287ccf87fd50aa9a35bbe581606e99ceac205438ff37e7d85b16

Contents?: true

Size: 999 Bytes

Versions: 60

Compression:

Stored size: 999 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 array = $('#searchKeywords').val().split(",");
  // $.each(array,function(i){
  //   alert(array[i]);
  // });
 
  // var el = document.getElementsByClassName('kanban-list')
  // if(el[0]) {
  //   Sortable.create(el,{
  //     handle: '.kanban-item',
  //     animation: 150
  //   });
  // }

  var headerElemHeight = $('.page-top-bar').height() + 64
  var calculatedHeight = "calc(100vh - " + headerElemHeight+"px"+")"
  $('.table-wrapper').css("maxHeight", calculatedHeight);
});

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
cm-admin-2.3.1 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-2.3.0 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-2.2.1 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-2.2.0 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-2.1.5 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-2.1.4 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-2.1.3 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-2.1.2 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-2.1.1 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-2.1.0 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-2.0.2 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-2.0.1 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-2.0.0 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.5.56 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.5.55 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.5.54 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.5.53 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.5.52 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.5.51 app/javascript/packs/cm_admin/scaffolds.js
cm-admin-1.5.50 app/javascript/packs/cm_admin/scaffolds.js