[missions] bugfix: markers weren't removed on mobile

This commit is contained in:
fkloft 2015-04-21 13:16:49 +02:00
parent 59659a944d
commit b2bc864d6a

View File

@ -155,6 +155,7 @@ window.plugin.missions = {
span.className = 'ui-icon ui-icon-close'; span.className = 'ui-icon ui-icon-close';
span.textContent = 'Close mission'; span.textContent = 'Close mission';
span.addEventListener('click', function() { span.addEventListener('click', function() {
this.unhighlightMissionPortals(markers);
li.parentNode.removeChild(li); li.parentNode.removeChild(li);
content.parentNode.removeChild(content); content.parentNode.removeChild(content);
delete this.tabHeaders[id]; delete this.tabHeaders[id];