Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit d221d51

Browse files
Bernd Helzerpkozlowski-opensource
Bernd Helzer
authored andcommitted
fix(rating): user glyhicon classes
1 parent 458a9bd commit d221d51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/rating/test/rating.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('rating directive', function () {
2222
var stars = getStars();
2323
var state = [];
2424
for (var i = 0, n = stars.length; i < n; i++) {
25-
state.push( (stars.eq(i).hasClass(classOn || 'icon-star') && ! stars.eq(i).hasClass(classOff || 'icon-star-empty')) );
25+
state.push( (stars.eq(i).hasClass(classOn || 'glyphicon-star') && ! stars.eq(i).hasClass(classOff || 'glyphicon-star-empty')) );
2626
}
2727
return state;
2828
}

template/rating/rating.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<span ng-mouseleave="reset()">
2-
<i ng-repeat="r in range" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" ng-class="$index < val && (r.stateOn || 'icon-star') || (r.stateOff || 'icon-star-empty')"></i>
2+
<i ng-repeat="r in range" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" ng-class="$index < val && (r.stateOn || 'glyphicon glyphicon-star') || (r.stateOff || 'glyphicon glyphicon-star-empty')"></i>
33
</span>

0 commit comments

Comments
 (0)