[BUG] Profile Activity Share button
solonova
New
Vanilla 2.0.18.2 profile/activity share button duplicate the comments if click it repeatedly.
The comment appears repeated 20 times if the internet connection is slow.
I am looking for fixed but i cant found the button code in files:
<input id="Form_Share" class="Button" type="submit" value="Share" name="Form/Share">
Could you help me? 
0
Comments
All right, finally i fixed U_U
I added to js/global.js this code:
$('#Form_Share').click(function(){ //$('#Form_Share').attr('disabled', 'true').delay(2500).attr('disabled', 'false'); $('#Form_Share').css('pointer-events','none');$('#Form_Share').css('color','#888'); setTimeout(function() { $('#Form_Share').css('pointer-events','visible'); $('#Form_Share').css('color','#444'); }, 2000); });Thank you ! : )
And this code for button "Form_AddComment" in the activity of other users:
$('#Form_AddComment').click(function(){ $('#Form_AddComment').css('pointer-events','none');$('#Form_AddComment').css('color','#888'); setTimeout(function() { $('#Form_AddComment').css('pointer-events','visible'); $('#Form_AddComment').css('color','#444'); }, 2000); });report issues here:
https://github.com/vanillaforums/Garden/issues
grep is your friend.