made location listing part of the template, rather than an unnecesary AJAX request + secret sauce sorting

This commit is contained in:
2018-11-11 01:19:32 +01:00
parent fd4f29ca7d
commit 2029ef5aeb
3 changed files with 12 additions and 15 deletions
-5
View File
@@ -225,11 +225,6 @@ function update_map() {
}
$(document).ready(function() {
$.getJSON('parts/getlocations', function(data){
$.each(data, function(i, val) {
$('table#details tr#location td select').append('<option value="' + i + '">' + val + '</option>');
});
});
$.ajaxSetup({ cache: false });
$('.search-bar').on('keyup', function() {
perform_query();