|
|
|
@ -148,11 +148,24 @@ $(document).ready(function() {
|
|
|
|
|
newResults += '</div>';
|
|
|
|
|
}
|
|
|
|
|
newResults += '</div>';
|
|
|
|
|
if(data.length == 0) {
|
|
|
|
|
newResults = '<div class="results">';
|
|
|
|
|
newResults += '<h3>No results.</h3>';
|
|
|
|
|
newResults += '</div>';
|
|
|
|
|
}
|
|
|
|
|
$('.results').replaceWith(newResults);
|
|
|
|
|
}).fail(function() {
|
|
|
|
|
var newResults = '<div class="results">';
|
|
|
|
|
newResults += '<h3>No results.</h3>';
|
|
|
|
|
newResults += '</div>';
|
|
|
|
|
$('.results').replaceWith(newResults);
|
|
|
|
|
console.log( "Query failed" );
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.toggle-btn').on('change', function() {
|
|
|
|
|
// Re-perform query
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//$('.results-row').on('click', );
|
|
|
|
|
});
|
|
|
|
|