WordPress.org

Ready to get started?Download WordPress

Forums

kk Star Ratings
[resolved] infinite scroll + kkstarrating (5 posts)

  1. soundforscher
    Member
    Posted 1 year ago #

    hey guys,

    i currently test infinite scroll.
    everything works fine, but after the first "scroll" kkstar rating doesnt load.

    i am sure there is an easy solution for this problem...

    can anyone help me ?

    http://wordpress.org/extend/plugins/kk-star-ratings/

  2. germundal
    Member
    Posted 1 year ago #

    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
    });
  3. Wnd
    Member
    Posted 1 year ago #

    Thanks germundal! Works perfect!

  4. germundal
    Member
    Posted 1 year ago #

    Glad to hear it :)

  5. Kimskjold
    Member
    Posted 10 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.