Created
September 16, 2011 21:27
-
-
Save davedash/1223202 to your computer and use it in GitHub Desktop.
[dotjs] Show what items are closed in github
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
span.closed { | |
background: red; | |
padding: 5px; | |
border-radius: 15px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var closed = '<span class="closed">Closed</span>'; | |
$.each($('a.subject'), function() { | |
var link = this; | |
$.get(this.href, function(data) { | |
if ($(data).find('span.state-closed').length) { | |
$(closed).appendTo(link.parentNode); | |
} | |
}); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment