minor - clear table when new search is performed
This commit is contained in:
parent
684d5d98e3
commit
42d3873042
|
@ -19,6 +19,7 @@ $(function() {
|
||||||
$('#searchField').addClass("loading");
|
$('#searchField').addClass("loading");
|
||||||
$('#searchTerm').text(search_term);
|
$('#searchTerm').text(search_term);
|
||||||
$('#searchField').attr("disabled", "disabled");
|
$('#searchField').attr("disabled", "disabled");
|
||||||
|
$('#mapList tbody').empty();
|
||||||
$.getJSON("/feature/search.json", {
|
$.getJSON("/feature/search.json", {
|
||||||
'bbox': bbox,
|
'bbox': bbox,
|
||||||
'q': search_term,
|
'q': search_term,
|
||||||
|
@ -37,7 +38,7 @@ $(function() {
|
||||||
$('#totalPages').text(features.pages);
|
$('#totalPages').text(features.pages);
|
||||||
$('#searchField').removeAttr("disabled");
|
$('#searchField').removeAttr("disabled");
|
||||||
$('#searchField').removeClass("loading");
|
$('#searchField').removeClass("loading");
|
||||||
$('#mapList tbody').empty();
|
|
||||||
// var headerRow = getHeaderRow();
|
// var headerRow = getHeaderRow();
|
||||||
// console.log(response);
|
// console.log(response);
|
||||||
var currFeatures = jsonLayer.features;
|
var currFeatures = jsonLayer.features;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user