submit button fixed
This commit is contained in:
commit
0b19bbc1ce
|
@ -9,7 +9,7 @@ def search(request):
|
||||||
return render_to_response("search.html", d)
|
return render_to_response("search.html", d)
|
||||||
|
|
||||||
def search_json(request):
|
def search_json(request):
|
||||||
search_term = request.GET.get("search", "")
|
search_term = request.GET.get("q", "")
|
||||||
threshold = request.GET.get("threshold", 0.5)
|
threshold = request.GET.get("threshold", 0.5)
|
||||||
bbox = request.GET.get("bbox", False)
|
bbox = request.GET.get("bbox", False)
|
||||||
country = request.GET.get("adm0", "US") # right now, unused
|
country = request.GET.get("adm0", "US") # right now, unused
|
||||||
|
|
|
@ -18,7 +18,7 @@ $(function() {
|
||||||
var search_term = $('#search').val();
|
var search_term = $('#search').val();
|
||||||
$.getJSON("/feature/search.json", {
|
$.getJSON("/feature/search.json", {
|
||||||
'bbox': bbox,
|
'bbox': bbox,
|
||||||
'search': search_term,
|
'q': search_term,
|
||||||
'srid': 3785,
|
'srid': 3785,
|
||||||
'threshold': 0.5
|
'threshold': 0.5
|
||||||
}, function(features) {
|
}, function(features) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user