fix identation

This commit is contained in:
Josue Gomez 2019-04-26 19:55:37 -06:00
parent 446270bb70
commit b9aec3d8c7

View File

@ -24,13 +24,13 @@
var dynUrl = "{% url 'subcategories-filtered' 0 %}";
$('#subcategories').empty();
$.ajax({
type: "GET",
url: dynUrl.replace('0', category.value),
success: function(opts){
$.each(opts, function(i, opt) {
$('#subcategories').append('<option value="' + opt['id'] + '">' + opt['name'] + '</option>');
});
}
type: "GET",
url: dynUrl.replace('0', category.value),
success: function(opts){
$.each(opts, function(i, opt) {
$('#subcategories').append('<option value="' + opt['id'] + '">' + opt['name'] + '</option>');
});
}
});
}
</script>