Support » Plugin: kk Star Ratings » [Plugin: kk Star Ratings] infinite scroll kkstarrating

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey!
    I solved it but it was a bit tricky to avoid double binding of the events. Try this in the Callback:

    jQuery('.kksr-legend').each(function(i,e){
    	if(jQuery(e).attr('style')){
    		jQuery(e).parents('.kk-star-ratings').addClass('stars-loaded');
    	}
    });
    jQuery('.kk-star-ratings:not(.stars-loaded)').kkstarratings({
    	'ajaxurl' : bhittani_plugin_kksr_js.ajaxurl,
    	'func' : bhittani_plugin_kksr_js.func,
    	'nonce' : bhittani_plugin_kksr_js.nonce,
    	'grs' : bhittani_plugin_kksr_js.grs,
    	'tooltip' : bhittani_plugin_kksr_js.tooltip,
    	'tooltips' : bhittani_plugin_kksr_js.tooltips,
    	'msg' : bhittani_plugin_kksr_js.msg,
    	'fuelspeed' : bhittani_plugin_kksr_js.fuelspeed,
    	'thankyou' : bhittani_plugin_kksr_js.thankyou,
    	'error_msg' : bhittani_plugin_kksr_js.error_msg
    });

    Thanks germundal! Works perfect!

    Glad to hear it 🙂

    I have the same problem, but could use a little hint on where to insert the above. Any help will be appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: kk Star Ratings] infinite scroll kkstarrating’ is closed to new replies.