Bladeren bron

bug

master
Pascal Gloor 5 jaren geleden
bovenliggende
commit
ac88bfdade
1 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 6
    6
      www/js/autodoc.js

+ 6
- 6
www/js/autodoc.js Bestand weergeven

@@ -75,22 +75,22 @@ $(document).ready(function () {
btn = $(btn).parent();
}

$(e.target).parent().children().removeClass('active');
$(e.target).addClass('active');
$(btn).parent().children().removeClass('active');
$(btn).addClass('active');

$('.autodoc_tag_btn_on').addClass('d-none');
$('.autodoc_tag_btn_off').removeClass('d-none');

$(e.target).children('.autodoc_tag_btn_on').removeClass('d-none');
$(e.target).children('.autodoc_tag_btn_off').addClass('d-none');
$(btn).children('.autodoc_tag_btn_on').removeClass('d-none');
$(btn).children('.autodoc_tag_btn_off').addClass('d-none');

$(e.target).parent().children().each(function(id,x) {
$(btn).parent().children().each(function(id,x) {
var myclass = 'badge-' + $(x).attr('data').split('_').pop();
$('#autodoc_tag_result').removeClass(myclass);
});

var myclass = 'badge-' + $(e.target).attr('data').split('_').pop();
var myclass = 'badge-' + $(btn).attr('data').split('_').pop();
$('#autodoc_tag_result').addClass(myclass);

});

Laden…
Annuleren
Opslaan