Skip to content

Commit

Permalink
swaps disabled/enabled state on rating
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Dec 4, 2013
1 parent 6907990 commit 7c4e053
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions src/modules/rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ $.fn.rating = function(parameters) {
.on('click' + eventNamespace, module.event.click)
;
$module
.addClass(className.active)
.removeClass(className.disabled)
;
},

Expand All @@ -162,7 +162,7 @@ $.fn.rating = function(parameters) {
.off(eventNamespace)
;
$module
.removeClass(className.active)
.addClass(className.disabled)
;
},

Expand Down Expand Up @@ -392,9 +392,10 @@ $.fn.rating.settings = {
},

className : {
active : 'active',
hover : 'hover',
loading : 'loading'
active : 'active',
disabled : 'disabled',
hover : 'hover',
loading : 'loading'
},

selector : {
Expand Down
8 changes: 4 additions & 4 deletions src/modules/rating.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

/* Icon */
.ui.rating .icon {
cursor: default;
cursor: pointer;

margin: 0em;

Expand Down Expand Up @@ -131,9 +131,9 @@
Active
--------------------*/

/* active rating */
.ui.active.rating .icon {
cursor: pointer;
/* disabled rating */
.ui.disabled.rating .icon {
cursor: default;
}

/* active icons */
Expand Down

0 comments on commit 7c4e053

Please sign in to comment.