Sha256: 92df09a070ff5070ec0ab19118ec13c2df153adf3e19986e2c7c0eb551650aa5

Contents?: true

Size: 964 Bytes

Versions: 2

Compression:

Stored size: 964 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

2 entries across 2 versions & 1 rubygems

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