made location listing part of the template, rather than an unnecesary AJAX request + secret sauce sorting
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user