I'm using the actual version of Kudos 1.1 - a great module. But I have some problem, I hope you can help me:

When clicking on the Kudo-Button, no succes message is shown. I set the time to 10 seconds and am using image-mode. Kudos are given correctly and shown in status after refreshing, but no message isn't shown instantly on clicking on the button.
I'm not big into JavaScript, but I tested v_success_message with alert(v_success_message); in jquery.kudos.js. The result was an ouput of undefined.

The same problem is given, when using form icon or button mode.

Comments

socki’s picture

Hey,

Sorry about that. Seems that maybe there is a cross browser issue. The way to fix it is to change line #62 of the jquery.kudos.js from:

v_success_message_display_time = $("success_message_display_time",data).html();

to:

v_success_message_display_time = $("success_message_display_time",data).text();

Basically, the html() => text()

I'll be pushing an updated version soon with this change included.

derhasi’s picture

Status: Active » Reviewed & tested by the community

Thanks, now it works fine.

socki’s picture

Status: Reviewed & tested by the community » Closed (fixed)