Sha256: 84554009a5da155efd6d4e877c06a99b48aaedf8b830b3195105ad115e0488db
Contents?: true
Size: 532 Bytes
Versions: 11
Compression:
Stored size: 532 Bytes
Contents
$('.presentation-search .compact fieldset label').livequery(function() { var label = $(this); var field = label.siblings('input'); if (!field[0] || field.attr('type') == 'checkbox') return; label.addClass('overlabel'); var hide_label = function() { label.css('text-indent', '-1000px') }; var show_label = function() { this.value || label.css('text-indent', '0px') }; $(field).focus(hide_label).blur(show_label).each(hide_label).each(show_label); $(label).click(function() {field.focus()}); });
Version data entries
11 entries across 5 versions & 1 rubygems