Sha256: ca638ddeab5e6ae1550d885a86600fadf10771e828f7c90724b1131cbf6b1e84

Contents?: true

Size: 520 Bytes

Versions: 5

Compression:

Stored size: 520 Bytes

Contents

<% content_for :javascript do %>
  <script>
    document.addEventListener('DOMContentLoaded', (_event) => {
      // flatpickr setup
      if(typeof window.flatpickr === 'function') {
        var options = window.flatpickr_filters_options;
        if(typeof options !== 'object') options = { enableTime: true };
        window.flatpickr('.filter [type="datetime-local"]', options);
      }

      // selectize setup
      $(function () {
        $('.filters select').selectize();
      });
    });
  </script>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
administrate_ransack-0.6.0 app/views/administrate_ransack/_javascript.html.erb
administrate_ransack-0.5.1 app/views/administrate_ransack/_javascript.html.erb
administrate_ransack-0.5.0 app/views/administrate_ransack/_javascript.html.erb
administrate_ransack-0.4.1 app/views/administrate_ransack/_javascript.html.erb
administrate_ransack-0.4.0 app/views/administrate_ransack/_javascript.html.erb