Sha256: e59262ac135c31c1a44cf4e7d5406e0b6a748d26db6475be2e2e5db250110f91
Contents?: true
Size: 687 Bytes
Versions: 11
Compression:
Stored size: 687 Bytes
Contents
// 'Polyfill' for :placeholder-shown, since it's not standard yet $(document).on('focus focusout', '*:not(.zuo-datepicker) > .zuo-textbox', function(e) { $("label[for='" + $(this).attr('id') + "']").toggleClass('floating', $(this).val() !== ""); }); $(document).on('change.select2', 'select', function(e) { $("label[for='" + $(this).attr('id') + "']").toggleClass('floating', !['', null].includes($(this).val())); }); $(document).on('show', '.zuo-datepicker', function(e) { $(this).children('.zuo-floating-label').addClass('floating'); }); $(document).on('hide', '.zuo-datepicker', function(e) { $(this).children('.zuo-floating-label').toggleClass('floating', !!e.date); });
Version data entries
11 entries across 11 versions & 1 rubygems