Skip to content
Snippets Groups Projects
Commit 8a75e315 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

element-form: fix display parent category if children is checked

parent 3d2e9bf6
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,11 @@
var index = 1;
jQuery(document).ready(function()
{
// display parent if children is checked
$('.option-field.selected').each(function() {
$(this).parents('.option-field').addClass('selected')
})
$(".category-select").change(function()
{
if (!$(this).val()) return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment