Sha256: f4e5058f9a3683db72533f88c0504a9eb3bdbf840d69ddf5655dd92264c5bd42

Contents?: true

Size: 967 Bytes

Versions: 1

Compression:

Stored size: 967 Bytes

Contents

(function (global, factory) {
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  typeof define === 'function' && define.amd ? define(factory) :
  (global = 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

1 entries across 1 versions & 1 rubygems

Version Path
flatpickr-4.6.6.0 vendor/assets/javascripts/flatpickr/plugins/labelPlugin/labelPlugin.js