Sha256: 652315f336a54cf14f580e2a9f2ef40b01c8ffd154a3f613d86ab3347ada8275

Contents?: true

Size: 1016 Bytes

Versions: 5

Compression:

Stored size: 1016 Bytes

Contents

(function (global, factory) {
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  typeof define === 'function' && define.amd ? define(factory) :
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.labelPlugin = factory());
}(this, (function () { 'use strict';

  function labelPlugin() {
      return function (fp) {
          return {
              onReady: function () {
                  var id = fp.input.id;
                  if (!id) {
                      return;
                  }
                  if (fp.mobileInput) {
                      fp.input.removeAttribute("id");
                      fp.mobileInput.id = id;
                  }
                  else if (fp.altInput) {
                      fp.input.removeAttribute("id");
                      fp.altInput.id = id;
                  }
                  fp.loadedPlugins.push("labelPlugin");
              },
          };
      };
  }

  return labelPlugin;

})));

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
flatpickr-4.6.13.1 vendor/assets/javascripts/flatpickr/plugins/labelPlugin/labelPlugin.js
flatpickr-4.6.13.0 vendor/assets/javascripts/flatpickr/plugins/labelPlugin/labelPlugin.js
flatpickr-4.6.11.0 vendor/assets/javascripts/flatpickr/plugins/labelPlugin/labelPlugin.js
flatpickr-4.6.10.0 vendor/assets/javascripts/flatpickr/plugins/labelPlugin/labelPlugin.js
flatpickr-4.6.9.0 vendor/assets/javascripts/flatpickr/plugins/labelPlugin/labelPlugin.js