eddysilvamendes / jquery-star-rating-plugin

Automatically exported from code.google.com/p/jquery-star-rating-plugin
0 stars 0 forks source link

Disable only stars before the checked one #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
First of all, thanks for the great piece of software. Mostly I like the
feature that if javascript is switched off, the rating is still working.
But now I have a special requirement. On one page the user should be able
to re-rate again. But the user should only be able to rate higher than the
last time.

What steps will reproduce the problem?
1. create a bunch of radio boxes, at least 4
2. set the first two to disabled
3. and set the third one to checked

What is the expected output? 

I expect that I can click the third, fourth, fifth box (star) etc. but not
the first two and if I click the cancel button only the first three stars
are on again.

What do you see instead?

If only one radio box is disabled, the whole rating bar is disabled and the
cancel button is disappeared.

What version of the plugin/jQuery are you using?
PLUGIN VERSION: v3.12
JQUERY VERSION: v1.3.2

On what browser(s) or operating system?
BROWSER(S): Firefox 3.0.17 (but I guess its the same behavior on every browser)

Original issue reported on code.google.com by m.gross...@gmail.com on 24 Jan 2010 at 11:44

GoogleCodeExporter commented 8 years ago
Hello again,

I changed the jquery.rating.js a little bit to achieve my goal. I tried to save 
the
functionality. So if you disable the last radio box, the cancel button 
disappears
just like in the original plugin if the first one in disabled there.
I'm not a jquery guy, so you may find a better solution. But I like to share my 
work
and may someone find it useful. 

Original comment by m.gross...@gmail.com on 26 Jan 2010 at 12:11

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by diego.a...@gmail.com on 23 Feb 2013 at 5:12