VRFS-2795 instrument selection; json posting

This commit is contained in:
Jonathan Kolyer 2015-03-08 06:13:29 +00:00
parent 23ccc855d5
commit 8bbfdbc013
2 changed files with 7 additions and 5 deletions

View File

@ -248,9 +248,11 @@ module JamRuby
rel
end
def search_results_page(params={})
rel = do_search(params)
rel, page = self.pagination(rel, params)
def search_results_page(filter={}, page=1)
self.data_blob = filter
self.save
rel = do_search(filter)
rel, page = self.pagination(rel, filter)
rel.to_json
end

View File

@ -148,8 +148,8 @@ context.JK.MusicianSearchFilter = class MusicianSearchFilter
checked: selected
)
$('#search-filter-instruments').append instrumentHtml
instsel = '#search-filter-instruments tr[data-instrument-id="'+instrument.id+'"] select'
$(instsel).val(proficiency)
profsel = '#search-filter-instruments tr[data-instrument-id="'+instrument.id+'"] select'
$(profsel).val(proficiency)
return true
_selectedValue: (identifier) =>