Wrap text
Report abuse
app/views/shared/_add_new_item_form.rhtml::Line 56
Added to applcation_helper.rb
|
|
def textfield_hint(hint)
"class=\"blank\" onblur=\"if (this.value.match(/^ *$/)){this.value='#{hint}';$(this).addClassName('blank'); };\" onfocus=\"if (this.value == '#{hint}') { this.value=''; $(this).removeClassName('blank'); };\" value=\"#{hint}\""
end
|