er, ups
This commit is contained in:
parent
2766aa3363
commit
3b22dc3d54
|
@ -15,8 +15,9 @@ $(function() {
|
||||||
$('#searchForm').submit(function(e) {
|
$('#searchForm').submit(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var bbox = map.getExtent().toBBOX();
|
var bbox = map.getExtent().toBBOX();
|
||||||
var search_term = $('#search').val();
|
var search_term = $('#searchField').val();
|
||||||
$('#searchField').addClass("loading");
|
$('#searchField').addClass("loading");
|
||||||
|
$('#searchTerm').text(search_term);
|
||||||
$('#searchField').attr("disabled", "disabled");
|
$('#searchField').attr("disabled", "disabled");
|
||||||
$.getJSON("/feature/search.json", {
|
$.getJSON("/feature/search.json", {
|
||||||
'bbox': bbox,
|
'bbox': bbox,
|
||||||
|
@ -32,7 +33,7 @@ $(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#noOfResults').text(features.results);
|
$('#noOfResults').text(features.results);
|
||||||
$('#currPage').text(features.current_page);
|
$('#currPageNo').text(features.current_page);
|
||||||
$('#totalPages').text(features.pages);
|
$('#totalPages').text(features.pages);
|
||||||
$('#searchField').removeAttr("disabled");
|
$('#searchField').removeAttr("disabled");
|
||||||
$('#searchField').removeClass("loading");
|
$('#searchField').removeClass("loading");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user