Procházet zdrojové kódy

Allow explicit destroyInvite() call with no event

tags/v0.1.2^2
Paul Holden před 7 roky
rodič
revize
ad464dd352
1 změnil soubory, kde provedl 6 přidání a 4 odebrání
  1. +6
    -4
      src/client/ui/templates/party/party.js

+ 6
- 4
src/client/ui/templates/party/party.js Zobrazit soubor

@@ -179,10 +179,12 @@ define([
},

destroyInvite: function(e) {
if ($(e.target).hasClass('btnAccept'))
this.acceptInvite();
else
this.declineInvite();
if (e) {
if ($(e.target).hasClass('btnAccept'))
this.acceptInvite();
else
this.declineInvite();
}

this.invite.el.remove();
this.invite = null;


Načítá se…
Zrušit
Uložit