|
@ -56,7 +56,6 @@ $.fn.rating = function(parameters) { |
|
|
initialize: function() { |
|
|
initialize: function() { |
|
|
module.verbose('Initializing rating module', settings); |
|
|
module.verbose('Initializing rating module', settings); |
|
|
|
|
|
|
|
|
console.log($module); |
|
|
|
|
|
if($icon.size() === 0) { |
|
|
if($icon.size() === 0) { |
|
|
module.setup.layout(); |
|
|
module.setup.layout(); |
|
|
} |
|
|
} |
|
@ -196,7 +195,6 @@ $.fn.rating = function(parameters) { |
|
|
: 0, |
|
|
: 0, |
|
|
$activeIcon = $icon.eq(ratingIndex) |
|
|
$activeIcon = $icon.eq(ratingIndex) |
|
|
; |
|
|
; |
|
|
console.log(rating, ratingIndex, $icon); |
|
|
|
|
|
$module |
|
|
$module |
|
|
.removeClass(className.selected) |
|
|
.removeClass(className.selected) |
|
|
; |
|
|
; |
|
@ -206,7 +204,6 @@ $.fn.rating = function(parameters) { |
|
|
; |
|
|
; |
|
|
if(rating > 0) { |
|
|
if(rating > 0) { |
|
|
module.verbose('Setting current rating to', rating); |
|
|
module.verbose('Setting current rating to', rating); |
|
|
console.log($activeIcon.prevAll().andSelf()); |
|
|
|
|
|
$activeIcon |
|
|
$activeIcon |
|
|
.prevAll() |
|
|
.prevAll() |
|
|
.andSelf() |
|
|
.andSelf() |
|
|