Sha256: 373ea6336377e510dc85484d55dc8423ba03e8b8051f665786078920ab20b915
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 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
3 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
presenting-2.0.0 | app/assets/javascripts/search.js |
presenting-2.0.0 | test/r3/public/javascripts/presenting/search.js |
presenting-1.0.0 | app/assets/javascript/search.js |