Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 9850b6f

Browse files
committed
Adding reporter details to status updates; hopefully fixing some IGB incompatibility problems.
1 parent 39e6239 commit 9850b6f

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
*.sublime*
33
config/private.js
44
.env
5+
newrelic_agent.log

public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@
171171
<script type="text/x-handlebars-template" id="systemMapTemplate">
172172
<div id="status-buttons">
173173
<h2 id="current-system"></h2>
174-
<a class="btn btn-clear" href="#" onclick="submitStatusButtonClick(this);"><i class="fa fa-check"></i> Clear</a>
175-
<a class="btn btn-hostile" href="#" onclick="submitStatusButtonClick(this);"><i class="fa fa-crosshairs"></i> Hostile</a>
174+
<a target="_blank" class="btn btn-clear" onClick="submitStatusButtonClick(this);"><i class="fa fa-check"></i> Clear</a>
175+
<a target="_blank" class="btn btn-hostile" onclick="submitStatusButtonClick(this);"><i class="fa fa-crosshairs"></i> Hostile</a>
176176
</div>
177177
</script>
178178

public/js/EventHandler.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,19 @@ var EventHandler = {
4747
+ '<a href="javascript:CCPEVE.showInfo(5, ' + reported[0].systemId + ');">'
4848
+ reported[0].systemName + '</a>';
4949
}
50+
event.text += ' by ' + '<a href="javascript:CCPEVE.showInfo(1377, '
51+
+ reported[0].reporterId + ');">' + reported[0].reporterName + '</a>';
5052
event.blink = 'hostiles';
5153
event.alert = true;
5254

5355
} else if (event.type === 'reportClear') {
5456
var reported = event.data;
5557
event.text = '<a href="javascript:CCPEVE.showInfo(5, ' + reported.systemId + ');">'
5658
+ reported.systemName + '</a> was reported clear';
59+
event.text += ' by ' + '<a href="javascript:CCPEVE.showInfo(1377, '
60+
+ reported.reporterId + ');">' + reported.reporterName + '</a>';
61+
event.blink = 'hostiles';
62+
event.alert = true;
5763

5864
} else if (event.type === 'memberJoined') {
5965
var member = event.data;

public/js/Main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ function submitScan(scanData) {
131131

132132
function submitStatusButtonClick(button) {
133133
var status = {systemId: $('#current-system').data('systemId'), systemName: $('#current-system').text(), hostiles: []};
134+
status.reporterId = Data.state.self.id;
135+
status.reporterName = Data.state.self.name;
134136
status.text = $(button).text().trim().toLowerCase();
135137

136138
if ($(button).text().trim().toLowerCase() === 'hostile') {

0 commit comments

Comments
 (0)