Переглянути джерело

Merge branch '108-destroy-invite-fix' into 'staging'

Allow explicit destroyInvite() call with no event

See merge request !56
tags/v0.1.2^2
Big Bad Waffle 7 роки тому
джерело
коміт
55acff4c5e
1 змінених файлів з 6 додано та 4 видалено
  1. +6
    -4
      src/client/ui/templates/party/party.js

+ 6
- 4
src/client/ui/templates/party/party.js Переглянути файл

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


destroyInvite: function(e) { 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.el.remove();
this.invite = null; this.invite = null;


Завантаження…
Відмінити
Зберегти