Skip to content

Commit

Permalink
Merge pull request #4 from robflynn/master
Browse files Browse the repository at this point in the history
Adding fallback value to aria-label
  • Loading branch information
fyneworks committed Apr 4, 2014
2 parents 6038190 + d1859bf commit af850fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
} // first element of group

// insert rating star (thanks Jan Fanslau rev125 for blind support https://code.google.com/p/jquery-star-rating-plugin/issues/detail?id=125)
var star = $('<div role="text" aria-label="'+ this.title +'" class="star-rating rater-'+ control.serial +'"><a title="' + (this.title || this.value) + '">' + this.value + '</a></div>');
var star = $('<div role="text" aria-label="'+ (this.title || this.value) +'" class="star-rating rater-'+ control.serial +'"><a title="' + (this.title || this.value) + '">' + this.value + '</a></div>');
rater.append(star);

// inherit attributes from input element
Expand Down

0 comments on commit af850fa

Please sign in to comment.