Sha256: a36f236e7328703899dea2ef52cecbde67388fc72fdb0f63e2a305579df5f0ff

Contents?: true

Size: 837 Bytes

Versions: 1

Compression:

Stored size: 837 Bytes

Contents

/* flatpickr v4.5.2, @license MIT */
(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
    typeof define === 'function' && define.amd ? define(factory) :
    (global.labelPlugin = factory());
}(this, (function () { 'use strict';

    function labelPlugin() {
      return function (fp) {
        return {
          onReady: function onReady() {
            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;
            }
          }
        };
      };
    }

    return labelPlugin;

})));

Version data entries

1 entries across 1 versions & 1 rubygems

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