app/assets/javascripts/search.js in presenting-2.0.0 vs app/assets/javascripts/search.js in presenting-2.0.1

- old
+ new

@@ -1,13 +1,13 @@ -$('.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()}); -}); +$('.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()}); +});