You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
347 B

semantic.rating = {};
// ready event
semantic.rating.ready = function() {
$('.ui.rating')
.each(function() {
if( $(this).closest('.code').size() === 0) {
$(this)
.rating({
initialRating: 3
})
;
}
})
;
};
// attach ready event
$(document)
.ready(semantic.rating.ready)
;