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