witten
/
luminotes
Archived
1
0
Fork 0

Display all redeemed invites sent to the same email address, instead of just displaying one invite per email address.

This commit is contained in:
Dan Helfman 2008-01-06 22:22:46 +00:00
parent 7bdc228d09
commit 8e87239e6f
1 changed files with 3 additions and 2 deletions

View File

@ -1362,8 +1362,9 @@ Wiki.prototype.display_invites = function ( invite_area ) {
for ( var i in this.invites ) {
var invite = this.invites[ i ];
// only display the first invite for a given email address
if ( addresses[ invite.email_address ] == true )
// if there are multiple invites for a given email address, only display those that are
// redeemed
if ( addresses[ invite.email_address ] == true && !invite.redeemed_user_id )
continue;
var revoke_button = createDOM( "input", {