Last active
August 29, 2015 13:59
-
-
Save benedmunds/10500084 to your computer and use it in GitHub Desktop.
This file contains 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
$scope.$on('ngRepeatFinished', function(ngRepeatFinishedEvent) { | |
$('.month').each(function(){ | |
//grab the classes | |
var classes = $(this).attr('class').split(/\s+/); | |
for (var i=0; i<classes.length; i++) { | |
//only check against the date classes | |
if (/\w*-\d{4}/.test(classes[i])) { | |
//show the first matching element | |
$('.'+classes[i]).first().show(); | |
} | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment