Navigation Menu

Skip to content

Commit

Permalink
Updates jquery.rating.js for jQuery 1.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Dutil committed Jun 5, 2013
1 parent 2699098 commit ae1aa20
Show file tree
Hide file tree
Showing 3 changed files with 386 additions and 63 deletions.
2 changes: 1 addition & 1 deletion Gemfile
@@ -1,4 +1,4 @@
source "http://rubygems.org"
source "https://rubygems.org"
gemspec

group :test do
Expand Down
60 changes: 9 additions & 51 deletions app/assets/stylesheets/store/spree_reviews.css.erb
Expand Up @@ -46,57 +46,15 @@
margin: 1em 0;
}

/*
* jQuery.Rating Plugin CSS - http://www.fyneworks.com/jquery/star-rating/
***************************************************************************/

div.rating-cancel, div.star-rating {
float: left;
width: 17px;
height: 16px;
text-indent: -999em;
cursor: pointer;
display: block;
background: transparent;
overflow: hidden
}

div.rating-cancel, div.rating-cancel a {
background: transparent url("<%= asset_path('store/reviews/delete.gif') %>") no-repeat scroll 0 -16px;
}

div.star-rating, div.star-rating a {
background: url("<%= asset_path('store/reviews/star.gif') %>") no-repeat 0 0px;
}

div.rating-cancel a, div.star-rating a {
display: block;
width: 16px;
height: 100%;
background-position: 0 0px;
border: 0
}

div.star-rating-on, div.star-rating-on a {
background-position: 0 -32px !important
}

div.star-rating-hover, div.star-rating-hover a {
background-position: 0 -32px !important;
}

/* jQuery.Rating Plugin CSS - http://www.fyneworks.com/jquery/star-rating/ */
div.rating-cancel,div.star-rating{float:left;width:17px;height:15px;text-indent:-999em;cursor:pointer;display:block;background:transparent;overflow:hidden}
div.rating-cancel,div.rating-cancel a{background:url(delete.gif) no-repeat 0 -16px}
div.star-rating,div.star-rating a{background:url(star.gif) no-repeat 0 0px}
div.rating-cancel a,div.star-rating a{display:block;width:16px;height:100%;background-position:0 0px;border:0}
div.star-rating-on a{background-position:0 -16px!important}
div.star-rating-hover a{background-position:0 -32px}
/* Read Only CSS */
div.star-rating-readonly a {
cursor: default !important
}

div.star-rating-readonly a{cursor:default !important}
/* Partial Star CSS */
div.star-rating {
/*
This caused the review stars not to show up
background-color: transparent !important;
overflow: hidden !important
*/
}

div.star-rating{background:transparent!important;overflow:hidden!important}
/* END jQuery.Rating Plugin CSS */

0 comments on commit ae1aa20

Please sign in to comment.