Skip to:
Content

BuddyPress.org

Ticket #3360: 3360-1.patch

File 3360-1.patch, 1.8 KB (added by DJPaul, 15 years ago)
  • bp-themes/bp-default/_inc/css/default.css

     
    15301530        padding: 6px;
    15311531        width: 90%;
    15321532}
     1533input[type="submit"].pending,
     1534input[type="button"].pending,
     1535input[type="reset"].pending,
     1536input[type="submit"].disabled,
     1537input[type="button"].disabled,
     1538input[type="reset"].disabled,
    15331539button.pending,
    15341540button.disabled,
    15351541div.pending a,
     
    15381544        color: #bbb;
    15391545        cursor: default;
    15401546}
     1547input[type="submit"]:hover.pending,
     1548input[type="button"]:hover.pending,
     1549input[type="reset"]:hover.pending,
     1550input[type="submit"]:hover.disabled,
     1551input[type="button"]:hover.disabled,
     1552input[type="reset"]:hover.disabled,
    15411553button.pending:hover,
    15421554button.disabled:hover,
    15431555div.pending a:hover,
  • bp-themes/bp-default/_inc/global.js

     
    102102                                jq("textarea#whats-new").val('');
    103103
    104104                                /* Re-enable the submit button after 8 seconds. */
     105                                button.addClass('disabled');
    105106                                setTimeout( function() { button.prop("disabled", false); }, 8000 );
    106107                        }
    107108                });
     
    391392                                        jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html( Number( jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html() ) + 1 );
    392393
    393394                                        /* Re-enable the submit button after 5 seconds. */
    394                                         setTimeout( function() { target.prop("disabled", false); }, 5000 );
     395                                        target.addClass('disabled');
     396                                        setTimeout( function() { target.prop("disabled", false).removeClass('disabled'); }, 5000 );
    395397                                }
    396398                        });
    397399