Browse Source

swaps disabled/enabled state on rating

pull/401/head
jlukic 11 years ago
parent
commit
7c4e053c15
2 changed files with 10 additions and 9 deletions
  1. 11
      src/modules/rating.js
  2. 8
      src/modules/rating.less

11
src/modules/rating.js

@ -152,7 +152,7 @@ $.fn.rating = function(parameters) {
.on('click' + eventNamespace, module.event.click)
;
$module
.addClass(className.active)
.removeClass(className.disabled)
;
},
@ -162,7 +162,7 @@ $.fn.rating = function(parameters) {
.off(eventNamespace)
;
$module
.removeClass(className.active)
.addClass(className.disabled)
;
},
@ -392,9 +392,10 @@ $.fn.rating.settings = {
},
className : {
active : 'active',
hover : 'hover',
loading : 'loading'
active : 'active',
disabled : 'disabled',
hover : 'hover',
loading : 'loading'
},
selector : {

8
src/modules/rating.less

@ -34,7 +34,7 @@
/* Icon */
.ui.rating .icon {
cursor: default;
cursor: pointer;
margin: 0em;
@ -131,9 +131,9 @@
Active
--------------------*/
/* active rating */
.ui.active.rating .icon {
cursor: pointer;
/* disabled rating */
.ui.disabled.rating .icon {
cursor: default;
}
/* active icons */

Loading…
Cancel
Save