Sha256: 0a86a8313a9d05aadeaec59c67ffad96d71c222d81a26e69a6de35da35ce73c1

Contents?: true

Size: 572 Bytes

Versions: 4

Compression:

Stored size: 572 Bytes

Contents

// VanillaJS Ready
document.addEventListener('DOMContentLoaded', function() {
  // Datepickers - YYYY-MM-DD
  if($("input[data-js='datepicker']").length > 0) {
    $("input[data-js='datepicker']").datepicker({
      language: 'en',
      format: 'yyyy-mm-dd',
      'autoclose': true
    });
  }

  // Datepickers - YYYY
  if($("input[data-js='datepicker-years']").length > 0) {
    $("input[data-js='datepicker-years']").datepicker({
      language: 'en',
      format: 'yyyy',
      viewMode: "years",
      minViewMode: "years",
      'autoclose': true
    });
  }
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
geoblacklight_admin-0.6.0 app/assets/javascripts/geoblacklight_admin/datepicker.js
geoblacklight_admin-0.5.1 app/assets/javascripts/geoblacklight_admin/datepicker.js
geoblacklight_admin-0.5.0 app/assets/javascripts/geoblacklight_admin/datepicker.js
geoblacklight_admin-0.4.2 app/assets/javascripts/geoblacklight_admin/datepicker.js