Browse Source

bug

master
Pascal Gloor 5 years ago
parent
commit
ac88bfdade
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      www/js/autodoc.js

+ 6
- 6
www/js/autodoc.js View File

btn = $(btn).parent(); 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_on').addClass('d-none');
$('.autodoc_tag_btn_off').removeClass('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(); var myclass = 'badge-' + $(x).attr('data').split('_').pop();
$('#autodoc_tag_result').removeClass(myclass); $('#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); $('#autodoc_tag_result').addClass(myclass);


}); });

Loading…
Cancel
Save