Hi,

Thanks for this module.

I'm using kudos in conjunction with userpoints. Kudos was working fine, but it stopped working: I press the "give kudos" form button and nothing happens. (I don't know exactly when it stopped working).

I have 2 websites with the same configuration, and in the second website it's working. I've checked the generated code on both websites and it's the same code.

I've updated all my modules.

I've checked with different themes.

I'm not submitting the addresses of the websites because only registered users can give kudos.

I'll appreciate any help in advance. I'm working on this and can't find any solution, I guess the users of the website are becoming frustrated because of this.

Thanks.

CommentFileSizeAuthor
#2 a.zip714.55 KBfederico

Comments

socki’s picture

Can you give screenshots or video of what you are seeing? Hard to diagnose considering you are saying the same code on a similar site that you have is working.

What exactly is happening? Could it be that you had given the kudos to that particular piece of content (or user) and you have un-give disabled in the configurations?

federico’s picture

StatusFileSize
new714.55 KB

Thanks for your reply. Attached is a screencast. In the first page it works, in the second it doesn't.

No, I'm not trying to give kudos to a piece of content that I have already given kudos. I press the "give kudos" form button, below the comment, and just nothing happens.

socki’s picture

Are there any javascript errors on that page which may have been introduced?

Try opening up firebug or the JS error console when the page loads, and subsequently when you click the button. If there is an error on page load, maybe its preventing JQuery from binding appropriately?

federico’s picture

Thanks socki,

Yes you are right! There is a JQuery error, this is firebug response:

$(element).closest is not a function
[Break on this error] var form = $(element).closest('form');

jquery...yg.js?F (line 444)

432 /**
433 * @link http://code.google.com/p/jwysiwyg/issues/detail?id=52
434 */
435 this.initialContent = $(element).val();
436 this.initFrame();
437
438 if ( this.initialContent.length == 0 )
439 this.setContent('');
440
441 /**
442 * http://code.google.com/p/jwysiwyg/issues/detail?id=100
443 */
444 var form = $(element).closest('form');
445
446 if ( this.options.autoSave )
447 {
448 form.submit(function() { self.saveContent(); });
449 }
450
451 form.bind('reset', function()
452 {
453 self.setContent( self.initialContent );
454 self.saveContent();
455 });
456 }, 

I disabled WYSIWYG and it works.

I don't now if this is an error of Kudos or of WYSIWYG, please feel free to close this issue if you think this issue belongs to WYSIWYG, I'll report it there.

Thanks a lot for your help!

socki’s picture

Status: Active » Closed (works as designed)

Good luck. Let me know if you find something out that is kudos related that can be adjusted.
Thanks.