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