value 0 submitted to database

Jul 28, 2014 at 3:11 AM

I've been using rateit for a few days now,thanks!

I just noticed there are a bunch of 0 values being submitted to my database.

I want the possible values should be only 1,2,3,4,5 and I want users to be able to update their rating but not delete, so this is why I am using data-rateit-resetable="false" which from the documentation seems to not display reset button:
HTML: data-rateit-resetable, JS: resetable = when not readonly, whether to show the reset button (default: true)
This is my HTML:
<div class="rateit bigstars" id="rateit-poemdetail" data-rateit-starwidth="32" data-rateit-starheight="32" data-rateit-step="1" data-rateit-resetable="false"></div>
This is my javascript:
$('#rating_wrapper .rateit').bind('rated reset', function (e) {
What am I doing wrong? Is it including reset in my Javascript?
How are users submitting a rating of 0, I'm not able to duplicate this?

Jul 28, 2014 at 9:12 AM
I could recreate the bug by clicking on the first pixel of the rateit box.
For now I would just add a condition to your JS that would filter these cases out.

I'll create a bug report from this item.
Jul 28, 2014 at 9:12 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.