Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

class name error


Project:Star Rating Plugin
Version:2.5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

in cakephp, the form names are in these format
data[Model][field_name]

in the rating, the code generates the ffg classname for the radio buttons
star_group_data[Model][field_name]

Fix:
- line 97: var n = this.name;
+ line 97: var real_name = this.name;
+ line 98: var n = real_name.replace(/[^A-Za-z0-9_\-]/g, '-');

- line 109: $.rating.groups[n].valueElem = $('<input type="hidden" name="' + n + '" value=""' + (settings.readOnly ? ' disabled="disabled"' : '') + '>');
+ line 109: $.rating.groups[n].valueElem = $('<input type="hidden" name="' + real_name + '" value=""' + (settings.readOnly ? ' disabled="disabled"' : '') + '>');

Comments

#1

Version:2.0.0» 2.5

+1

I've downloaded the last version (2.6.1), which is unusable with rails without this patch.
Would be great to see it in the stable version.

Thx.
Gravis