Skip to content

Instantly share code, notes, and snippets.

@xiejiangzhi
Last active December 6, 2017 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiejiangzhi/a7a19358b52dad2af7257e797ecf288e to your computer and use it in GitHub Desktop.
Save xiejiangzhi/a7a19358b52dad2af7257e797ecf288e to your computer and use it in GitHub Desktop.
(function(){
var $toggle_btn = $("<a href='javascript: void(0);'>My Label Switch</a>");
$('.filter-item.reset-filters').append($toggle_btn);
$toggle_btn.click(function(e){
var $issues = $('li.issue[data-labels*=1290],li.issue[data-labels*=2697]');
if ($($issues[0]).hasClass('hide-issue')) {
$issues.removeClass("hide-issue");
} else {
$issues.addClass("hide-issue");
}
})
}())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment