2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2011-12-19 15:30:14 +00:00
|
|
|
module IssuesHelper
|
2012-02-27 16:10:12 +00:00
|
|
|
def tracker_search_field(name, txt)
|
|
|
|
str = "<input name='#{name}' id='#{name}' type='text' value='#{txt}'"
|
|
|
|
str << "onblur=\"if(this.value==''){this.value='#{txt}';this.className='gray';}\""
|
|
|
|
str << "onclick=\"if(this.value=='#{txt}'){this.value='';this.className='black';}\" class=\"gray\">"
|
|
|
|
str.html_safe
|
|
|
|
end
|
2011-12-19 15:30:14 +00:00
|
|
|
end
|