This commit is contained in:
Sanj 2011-08-31 19:18:57 +05:30
parent 2766aa3363
commit 3b22dc3d54

View File

@ -15,8 +15,9 @@ $(function() {
$('#searchForm').submit(function(e) {
e.preventDefault();
var bbox = map.getExtent().toBBOX();
var search_term = $('#search').val();
var search_term = $('#searchField').val();
$('#searchField').addClass("loading");
$('#searchTerm').text(search_term);
$('#searchField').attr("disabled", "disabled");
$.getJSON("/feature/search.json", {
'bbox': bbox,
@ -32,7 +33,7 @@ $(function() {
}
$('#noOfResults').text(features.results);
$('#currPage').text(features.current_page);
$('#currPageNo').text(features.current_page);
$('#totalPages').text(features.pages);
$('#searchField').removeAttr("disabled");
$('#searchField').removeClass("loading");