[jQuery] Hiding the cancel button in Ratings plugin, v.3.12
Hi
Right to the point:
I don't want to use the cancel button functionality of the ratings
plugin (version 3.12) so I don't want it showing in front of the
stars. I was expecting to find a configuration setting for this, but
didn't (did I miss it)? I added a line [control.cancel.hide()] to the
draw() function in the source code on line 256 which did the trick,
but I was wondering if there is a better way to do this (preferably
through configuration)? My source code now looks like this:
251 ....
252 else
253 $(control.inputs).removeAttr('checked');
254 // Show/hide 'cancel' button
255 control.cancel[control.readOnly || control.required?'hide':'show']
();
256 control.cancel.hide();
257 // Add/remove read-only classes to remove hand pointer
258 this.siblings()[control.readOnly?'addClass':'removeClass']('star-
rating-readonly');
259 }, // $.fn.rating.draw
257 ...
Anyone?
Regards
Lee Francis