fix identation
This commit is contained in:
parent
446270bb70
commit
b9aec3d8c7
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user