Skip to content

Commit

Permalink
+ pass the ids from the client through to the server
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Apr 19, 2011
1 parent 9aed7d6 commit 72ba5eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/test_project/location_webapp/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# and then populate the result with models (rendered, even).
#
get '/search/full' do
results = Geo.search params[:query], :ids => 100, :offset => params[:offset]
results = Geo.search params[:query], :ids => params[:ids], :offset => params[:offset]
results.extend Picky::Convenience
results[:geo] ||= []
results.populate_with Location do |location|
Expand Down
6 changes: 2 additions & 4 deletions server/test_project/location_webapp/views/search.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
%body
%p
#map_div{ :style => "width:690px;height:340px;" }
%p
It also works without qualifiers, as it knows what you mean:
= succeed "." do
%a{:href => "#", :onclick => "pickyClient.insert('47.283, 8.762');"} 47.283, 8.762
%p Geosearch
= Picky::Helper.cached_interface
:javascript
// The client
Expand Down Expand Up @@ -85,6 +82,7 @@
pickyClient.insert('46.947, 7.446');

// The map
//
var draggable_marker = null;

$(document).ready(function() {
Expand Down

0 comments on commit 72ba5eb

Please sign in to comment.