Sha256: afe73742251e16205cf4b9215b62ba0789c906c2444ca9f9e8f38740e3903ca9

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

// 'Polyfill' for :placeholder-shown, since it's not standard yet

$(document).on('focus focusout', '.zuo-textbox:not([type="date"])', 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()));
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zuora_connect_ui-0.2.12 app/assets/javascripts/zuora_connect_ui/input.js