Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

[BUG] Profile Activity Share button

solonovasolonova New
edited February 2012 in Vanilla 2.0 - 2.8

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? :)

Tagged:

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);
            }); 
    
  • grep is your friend.

Sign In or Register to comment.