Fix logout button "sometimes not working" and similar

This commit is contained in:
Thomas Gelf 2014-03-08 23:58:19 +01:00
parent d729d9381d
commit 959967c646
1 changed files with 4 additions and 0 deletions

View File

@ -277,6 +277,10 @@
if (target === 'ignore') {
return;
}
// If we change the target, oncomplete will fail to clean up
// This fixes the problem, not using req.$target would be better
delete this.requests[req.$target.attr('id')];
req.$target = $('#' + target);
newBody = true;
}