[missions] fix indentation; typo
This commit is contained in:
parent
da0c866ac3
commit
8fff4e3be9
@ -133,8 +133,8 @@ window.plugin.missions = {
|
|||||||
closeCallback: function() {
|
closeCallback: function() {
|
||||||
me.unhighlightMissionPortals(markers);
|
me.unhighlightMissionPortals(markers);
|
||||||
},
|
},
|
||||||
collapseCallback: this.collapsFix,
|
collapseCallback: this.collapseFix,
|
||||||
expandCallback: this.collapsFix
|
expandCallback: this.collapseFix
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -143,12 +143,12 @@ window.plugin.missions = {
|
|||||||
html: this.renderMissionList(missions),
|
html: this.renderMissionList(missions),
|
||||||
height: 'auto',
|
height: 'auto',
|
||||||
width: '400px',
|
width: '400px',
|
||||||
collapseCallback: this.collapsFix,
|
collapseCallback: this.collapseFix,
|
||||||
expandCallback: this.collapsFix
|
expandCallback: this.collapseFix
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
collapsFix: function() {
|
collapseFix: function() {
|
||||||
if (this && this.parentNode) {
|
if (this && this.parentNode) {
|
||||||
this.parentNode.style.height = 'auto';
|
this.parentNode.style.height = 'auto';
|
||||||
}
|
}
|
||||||
@ -196,7 +196,7 @@ window.plugin.missions = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.runHooks('portalMissionsLoaded', { missions: missions, portalguid: guid });
|
window.runHooks('portalMissionsLoaded', { missions: missions, portalguid: guid });
|
||||||
|
|
||||||
me.cacheByPortalGuid[guid] = {
|
me.cacheByPortalGuid[guid] = {
|
||||||
time: Date.now(),
|
time: Date.now(),
|
||||||
@ -230,7 +230,7 @@ window.plugin.missions = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.runHooks('missionLoaded', { mission: mission });
|
window.runHooks('missionLoaded', { mission: mission });
|
||||||
|
|
||||||
me.cacheByMissionGuid[guid] = {
|
me.cacheByMissionGuid[guid] = {
|
||||||
time: Date.now(),
|
time: Date.now(),
|
||||||
@ -405,7 +405,7 @@ window.plugin.missions = {
|
|||||||
var el = document.getElementsByClassName('wp-' + mwpid);
|
var el = document.getElementsByClassName('wp-' + mwpid);
|
||||||
if (!this.settings.checkedWaypoints[mwpid]) {
|
if (!this.settings.checkedWaypoints[mwpid]) {
|
||||||
this.settings.checkedWaypoints[mwpid] = true;
|
this.settings.checkedWaypoints[mwpid] = true;
|
||||||
window.runHooks('waypointFinished', { mission: this.getMissionCache(mid), waypointguid: wpid });
|
window.runHooks('waypointFinished', { mission: this.getMissionCache(mid), waypointguid: wpid });
|
||||||
$(el).show();
|
$(el).show();
|
||||||
} else {
|
} else {
|
||||||
delete this.settings.checkedWaypoints[mwpid];
|
delete this.settings.checkedWaypoints[mwpid];
|
||||||
@ -432,7 +432,7 @@ window.plugin.missions = {
|
|||||||
}, this);
|
}, this);
|
||||||
$(el).show();
|
$(el).show();
|
||||||
$(sumel).css('background-color', 'rgba(255, 187, 0, 0.3)');
|
$(sumel).css('background-color', 'rgba(255, 187, 0, 0.3)');
|
||||||
window.runHooks('missionFinished', { mission: mission });
|
window.runHooks('missionFinished', { mission: mission });
|
||||||
} else {
|
} else {
|
||||||
delete this.settings.checkedMissions[mid];
|
delete this.settings.checkedMissions[mid];
|
||||||
mission.waypoints.forEach(function(waypoint) {
|
mission.waypoints.forEach(function(waypoint) {
|
||||||
@ -657,10 +657,10 @@ window.plugin.missions = {
|
|||||||
window.addLayerGroup('Mission start portals', this.missionStartLayer, false);
|
window.addLayerGroup('Mission start portals', this.missionStartLayer, false);
|
||||||
window.addLayerGroup('Mission portals', this.missionLayer, true);
|
window.addLayerGroup('Mission portals', this.missionLayer, true);
|
||||||
|
|
||||||
window.pluginCreateHook('missionLoaded');
|
window.pluginCreateHook('missionLoaded');
|
||||||
window.pluginCreateHook('portalMissionsLoaded');
|
window.pluginCreateHook('portalMissionsLoaded');
|
||||||
window.pluginCreateHook('missionFinished');
|
window.pluginCreateHook('missionFinished');
|
||||||
window.pluginCreateHook('waypointFinished');
|
window.pluginCreateHook('waypointFinished');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user