Commit f15d037c authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

Merge changes I1c95cb9b,Idb39d315,I61daf1c5

* changes:
  jquery rating: add a pager hook for reskining
  jquery rating: New upstream release 3.14 (bug #923192)
  jquery rating: add README.Mahara file
parents 7abb1311 b7457814
jquery.rating.js
=================
Website: http://code.google.com/p/jquery-star-rating-plugin/
Version: 3.14
Changes:
* Added a pager hook for reskining
* Changed name and path of images in theme/raw/static/style/jquery.rating.css
/* /*
### jQuery Star Rating Plugin v3.13 - 2009-03-26 ### ### jQuery Star Rating Plugin v3.14 - 2012-01-26 ###
* Home: http://www.fyneworks.com/jquery/star-rating/ * Home: http://www.fyneworks.com/jquery/star-rating/
* Code: http://code.google.com/p/jquery-star-rating-plugin/ * Code: http://code.google.com/p/jquery-star-rating-plugin/
* *
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
else{ else{
// create new control if first star or control element was removed/replaced // create new control if first star or control element was removed/replaced
// Initialize options for this raters // Initialize options for this rater
control = $.extend( control = $.extend(
{}/* new object */, {}/* new object */,
options || {} /* current call options */, options || {} /* current call options */,
...@@ -92,7 +92,10 @@ ...@@ -92,7 +92,10 @@
rater.addClass('rating-to-be-drawn'); rater.addClass('rating-to-be-drawn');
// Accept readOnly setting from 'disabled' property // Accept readOnly setting from 'disabled' property
if(input.attr('disabled')) control.readOnly = true; if(input.attr('disabled') || input.hasClass('disabled')) control.readOnly = true;
// Accept required setting from class property (class='required')
if(input.hasClass('required')) control.required = true;
// Create 'cancel' button // Create 'cancel' button
rater.append( rater.append(
...@@ -164,6 +167,12 @@ ...@@ -164,6 +167,12 @@
// set current selection // set current selection
if(this.checked) control.current = star; if(this.checked) control.current = star;
// set current select for links
if(this.nodeName=="A"){
if($(this).hasClass('selected'))
control.current = star;
};
// hide input element // hide input element
input.hide(); input.hide();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment