Module: ODDB::Html::View::SearchMethods

Included in:
InlineSearch, Search
Defined in:
lib/oddb/html/view/search.rb

Instance Method Summary collapse

Instance Method Details

#dstype(model) ⇒ Object



12
13
14
15
16
17
# File 'lib/oddb/html/view/search.rb', line 12

def dstype(model)
  select = HtmlGrid::Select.new(:dstype, model, @session, self)
select.set_attribute('onChange', 'this.form.onsubmit();')
select.selected = @session.persistent_user_input(:dstype)
  select
end