ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: Lazo on June 01, 2014, 07:38:17 pm

Title: Likes
Post by: Lazo on June 01, 2014, 07:38:17 pm
Hello there.  O:-)

I just registered and found somethin' like a bug. When I click on "Like" and the on the number of likes, and keep clicking and clicking this happens: http://prntscr.com/3otbrz.

Hope I'll help. :)
Title: Re: Likes
Post by: emanuele on June 02, 2014, 03:56:38 am
Hi Lazo and welcome! :)

Nice bug! :D
It's a js/markup problem: when clicking on the indicator bubble, the target is wrapped (or replaced I closed the window now... stupid me) with the button containing the text and the bubble itself.
The fix should be an:
Code: [Select]
e.stopPropagation();
Title: Re: Likes
Post by: emanuele on June 02, 2014, 08:37:58 am
Actually it looks more complex that this... :-\

/me is a js hater... :'(

ETA: a bit ugly...
Added:
Code: [Select]
				if (e.target.nodeName.toLowerCase() !== 'a')
return false;
to likeUnlikePosts.

Any suggestion is welcome. O:-)