aa-intel-tool 2.8.0__py3-none-any.whl → 2.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aa_intel_tool/__init__.py +1 -1
- aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.css +5 -0
- aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css +1 -1
- aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.js +240 -315
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.js +70 -90
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.js +58 -90
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.js +158 -197
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.js +79 -93
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.js +67 -91
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.js +322 -132
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.js +16 -9
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.min.js.map +1 -1
- {aa_intel_tool-2.8.0.dist-info → aa_intel_tool-2.9.0.dist-info}/METADATA +2 -2
- {aa_intel_tool-2.8.0.dist-info → aa_intel_tool-2.9.0.dist-info}/RECORD +32 -32
- {aa_intel_tool-2.8.0.dist-info → aa_intel_tool-2.9.0.dist-info}/WHEEL +0 -0
- {aa_intel_tool-2.8.0.dist-info → aa_intel_tool-2.9.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,424 +1,349 @@
|
|
|
1
1
|
/* jshint -W097 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
/* Highlighting similar table rows on mouse over and click for chat scans
|
|
5
|
-
--------------------------------------------------------------------------------- */
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Determine if we can remove all sticky states for this corporation.
|
|
9
|
-
*
|
|
10
|
-
* @param element
|
|
11
|
-
* @returns {boolean}
|
|
12
|
-
*/
|
|
13
|
-
const removeCorporationStickyComplete = (element) => {
|
|
14
|
-
let removeCorporationSticky = true;
|
|
15
|
-
|
|
16
|
-
$(`table.aa-intel-pilot-participation-list tr[data-corporation-id="${element.data('corporationId')}"]`).each((i, el) => {
|
|
17
|
-
if ($(el).hasClass('aa-intel-highlight-sticky')) {
|
|
18
|
-
removeCorporationSticky = false;
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
return removeCorporationSticky;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
|
|
26
4
|
/**
|
|
27
|
-
* Determine if we can remove all sticky states for
|
|
5
|
+
* Determine if we can remove all sticky states for elements matching the selector.
|
|
28
6
|
*
|
|
29
|
-
* @param
|
|
30
|
-
* @returns {boolean}
|
|
7
|
+
* @param {string} selector CSS selector for elements to check
|
|
8
|
+
* @returns {boolean} True if no elements have the sticky class, false otherwise
|
|
31
9
|
*/
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
$(`table.aa-intel-pilot-participation-list tr[data-alliance-id="${element.data('allianceId')}"]`).each((i, el) => {
|
|
36
|
-
if ($(el).hasClass('aa-intel-highlight-sticky')) {
|
|
37
|
-
removeAllianceSticky = false;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
return removeAllianceSticky;
|
|
10
|
+
const canRemoveStickyHighlight = (selector) => {
|
|
11
|
+
return !$(selector).hasClass('aa-intel-highlight-sticky');
|
|
42
12
|
};
|
|
43
13
|
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Helper function
|
|
47
|
-
*
|
|
48
|
-
* Add a sticky highlight to the alliance table by alliance ID.
|
|
49
|
-
*
|
|
50
|
-
* @param element
|
|
51
|
-
*/
|
|
52
|
-
const allianceTableAddStickyByAllianceId = (element) => {
|
|
53
|
-
$(`table.aa-intel-alliance-participation-list tr[data-alliance-id="${element.data('allianceId')}"]`)
|
|
54
|
-
.addClass('aa-intel-highlight-sticky');
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Helper function
|
|
60
|
-
*
|
|
61
|
-
* Add a highlight to the alliance table by alliance ID.
|
|
62
|
-
*
|
|
63
|
-
* @param element
|
|
64
|
-
*/
|
|
65
|
-
const allianceTableAddHighlightByAllianceId = (element) => {
|
|
66
|
-
$(`table.aa-intel-alliance-participation-list tr[data-alliance-id="${element.data('allianceId')}"]`)
|
|
67
|
-
.addClass('aa-intel-highlight');
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Helper function
|
|
73
|
-
*
|
|
74
|
-
* Remove a sticky highlight from the alliance table by alliance ID.
|
|
75
|
-
*
|
|
76
|
-
* @param element
|
|
77
|
-
*/
|
|
78
|
-
const allianceTableRemoveStickyByAllianceId = (element) => {
|
|
79
|
-
$(`table.aa-intel-alliance-participation-list tr[data-alliance-id="${element.data('allianceId')}"]`)
|
|
80
|
-
.removeClass('aa-intel-highlight-sticky');
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
|
|
84
14
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* Remove a highlight from the alliance table by alliance ID.
|
|
88
|
-
*
|
|
89
|
-
* @param element
|
|
90
|
-
*/
|
|
91
|
-
const allianceTableRemoveHighlightByAllianceId = (element) => {
|
|
92
|
-
$(`table.aa-intel-alliance-participation-list tr[data-alliance-id="${element.data('allianceId')}"]`)
|
|
93
|
-
.removeClass('aa-intel-highlight');
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Helper function
|
|
99
|
-
*
|
|
100
|
-
* Add a sticky highlight to the corporation table by corporation ID.
|
|
101
|
-
*
|
|
102
|
-
* @param element
|
|
103
|
-
*/
|
|
104
|
-
const corporationTableAddStickyByCorporationId = (element) => {
|
|
105
|
-
$(`table.aa-intel-corporation-participation-list tr[data-corporation-id="${element.data('corporationId')}"]`)
|
|
106
|
-
.addClass('aa-intel-highlight-sticky');
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Helper function
|
|
112
|
-
*
|
|
113
|
-
* Add a highlight to the corporation table by corporation ID.
|
|
114
|
-
*
|
|
115
|
-
* @param element
|
|
116
|
-
*/
|
|
117
|
-
const corporationTableAddHighlightByCorporationId = (element) => {
|
|
118
|
-
$(`table.aa-intel-corporation-participation-list tr[data-corporation-id="${element.data('corporationId')}"]`)
|
|
119
|
-
.addClass('aa-intel-highlight');
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Helper function
|
|
125
|
-
*
|
|
126
|
-
* Add a sticky highlight to the corporation table by alliance ID.
|
|
127
|
-
*
|
|
128
|
-
* @param element
|
|
129
|
-
*/
|
|
130
|
-
const corporationTableAddStickyByAllianceId = (element) => {
|
|
131
|
-
$(`table.aa-intel-corporation-participation-list tr[data-alliance-id="${element.data('allianceId')}"]`)
|
|
132
|
-
.addClass('aa-intel-highlight-sticky');
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Helper function
|
|
138
|
-
*
|
|
139
|
-
* Add a highlight to the corporation table by alliance ID.
|
|
140
|
-
*
|
|
141
|
-
* @param element
|
|
142
|
-
*/
|
|
143
|
-
const corporationTableAddHighlightByAllianceId = (element) => {
|
|
144
|
-
$(`table.aa-intel-corporation-participation-list tr[data-alliance-id="${element.data('allianceId')}"]`)
|
|
145
|
-
.addClass('aa-intel-highlight');
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Helper function
|
|
151
|
-
*
|
|
152
|
-
* Remove a sticky highlight from the corporation table by corporation ID.
|
|
153
|
-
*
|
|
154
|
-
* @param element
|
|
155
|
-
*/
|
|
156
|
-
const corporationTableRemoveStickyByCorporationId = (element) => {
|
|
157
|
-
$(`table.aa-intel-corporation-participation-list tr[data-corporation-id="${element.data('corporationId')}"]`)
|
|
158
|
-
.removeClass('aa-intel-highlight-sticky');
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Helper function
|
|
164
|
-
*
|
|
165
|
-
* Remove a highlight from the corporation table by corporation ID.
|
|
166
|
-
*
|
|
167
|
-
* @param element
|
|
168
|
-
*/
|
|
169
|
-
const corporationTableRemoveHighlightByCorporationId = (element) => {
|
|
170
|
-
$(`table.aa-intel-corporation-participation-list tr[data-corporation-id="${element.data('corporationId')}"]`)
|
|
171
|
-
.removeClass('aa-intel-highlight');
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Helper function
|
|
177
|
-
*
|
|
178
|
-
* Remove a sticky highlight from the corporation table by alliance ID.
|
|
179
|
-
*
|
|
180
|
-
* @param element
|
|
181
|
-
*/
|
|
182
|
-
const corporationTableRemoveStickyByAllianceId = (element) => {
|
|
183
|
-
$(`table.aa-intel-corporation-participation-list tr[data-alliance-id="${element.data('allianceId')}"]`)
|
|
184
|
-
.removeClass('aa-intel-highlight-sticky');
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Helper function
|
|
190
|
-
*
|
|
191
|
-
* Remove a highlight from the corporation table by alliance ID.
|
|
192
|
-
*
|
|
193
|
-
* @param element
|
|
194
|
-
*/
|
|
195
|
-
const corporationTableRemoveHighlightByAllianceId = (element) => {
|
|
196
|
-
$(`table.aa-intel-corporation-participation-list tr[data-alliance-id="${element.data('allianceId')}"]`)
|
|
197
|
-
.removeClass('aa-intel-highlight');
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Helper function
|
|
203
|
-
*
|
|
204
|
-
* Add a sticky highlight to the pilot table by corporation ID.
|
|
205
|
-
*
|
|
206
|
-
* @param element
|
|
207
|
-
*/
|
|
208
|
-
const pilotTableAddStickyByCorporationId = (element) => {
|
|
209
|
-
$(`table.aa-intel-pilot-participation-list tr[data-corporation-id="${element.data('corporationId')}"]`)
|
|
210
|
-
.addClass('aa-intel-highlight-sticky');
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Helper function
|
|
216
|
-
*
|
|
217
|
-
* Add a highlight to the pilot table by corporation ID.
|
|
218
|
-
*
|
|
219
|
-
* @param element
|
|
220
|
-
*/
|
|
221
|
-
const pilotTableAddHighlightByCorporationId = (element) => {
|
|
222
|
-
$(`table.aa-intel-pilot-participation-list tr[data-corporation-id="${element.data('corporationId')}"]`)
|
|
223
|
-
.addClass('aa-intel-highlight');
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Helper function
|
|
229
|
-
*
|
|
230
|
-
* Add a sticky highlight to the pilot table by alliance ID.
|
|
231
|
-
*
|
|
232
|
-
* @param element
|
|
233
|
-
*/
|
|
234
|
-
const pilotTableAddStickyByAllianceId = (element) => {
|
|
235
|
-
$(`table.aa-intel-pilot-participation-list tr[data-alliance-id="${element.data('allianceId')}"]`)
|
|
236
|
-
.addClass('aa-intel-highlight-sticky');
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Helper function
|
|
242
|
-
*
|
|
243
|
-
* Add a highlight to the pilot table by alliance ID.
|
|
244
|
-
*
|
|
245
|
-
* @param element
|
|
246
|
-
*/
|
|
247
|
-
const pilotTableAddHighlightByAllianceId = (element) => {
|
|
248
|
-
$(`table.aa-intel-pilot-participation-list tr[data-alliance-id="${element.data('allianceId')}"]`)
|
|
249
|
-
.addClass('aa-intel-highlight');
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Helper function
|
|
255
|
-
*
|
|
256
|
-
* Remove a sticky highlight from the pilot table by corporation ID.
|
|
257
|
-
*
|
|
258
|
-
* @param element
|
|
259
|
-
*/
|
|
260
|
-
const pilotTableRemoveStickyByCorporationId = (element) => {
|
|
261
|
-
$(`table.aa-intel-pilot-participation-list tr[data-corporation-id="${element.data('corporationId')}"]`)
|
|
262
|
-
.removeClass('aa-intel-highlight-sticky');
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Helper function
|
|
268
|
-
*
|
|
269
|
-
* Remove a highlight from the pilot table by corporation ID.
|
|
15
|
+
* Determine if we can remove all sticky states for this corporation.
|
|
270
16
|
*
|
|
271
|
-
* @param element
|
|
17
|
+
* @param {jQuery|Element} element The jQuery element to check
|
|
18
|
+
* @returns {boolean} True if no elements have the sticky class, false otherwise
|
|
272
19
|
*/
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
.removeClass('aa-intel-highlight');
|
|
20
|
+
const removeCorporationStickyComplete = (element) => {
|
|
21
|
+
return canRemoveStickyHighlight(`table.aa-intel-pilot-participation-list tr[data-corporation-id="${element.data('corporationId')}"]`);
|
|
276
22
|
};
|
|
277
23
|
|
|
278
|
-
|
|
279
24
|
/**
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
* Add a sticky highlight to the pilot table by alliance ID.
|
|
25
|
+
* Determine if we can remove all sticky states for this alliance.
|
|
283
26
|
*
|
|
284
|
-
* @param element
|
|
27
|
+
* @param {jQuery|Element} element
|
|
28
|
+
* @returns {boolean} True if no elements have the sticky class, false otherwise
|
|
285
29
|
*/
|
|
286
|
-
const
|
|
287
|
-
|
|
288
|
-
.removeClass('aa-intel-highlight-sticky');
|
|
30
|
+
const removeAllianceStickyComplete = (element) => {
|
|
31
|
+
return canRemoveStickyHighlight(`table.aa-intel-pilot-participation-list tr[data-alliance-id="${element.data('allianceId')}"]`);
|
|
289
32
|
};
|
|
290
33
|
|
|
291
|
-
|
|
292
34
|
/**
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
* @param
|
|
35
|
+
* Generic helper function to manipulate table row classes
|
|
36
|
+
*
|
|
37
|
+
* @param {string} tableClass The table CSS class
|
|
38
|
+
* @param {string} dataAttribute The data attribute name ('alliance-id' or 'corporation-id')
|
|
39
|
+
* @param {string} dataValue The data attribute value
|
|
40
|
+
* @param {string} cssClass The CSS class to add/remove
|
|
41
|
+
* @param {string} action The action to perform ('add' or 'remove')
|
|
42
|
+
* @return {void}
|
|
298
43
|
*/
|
|
299
|
-
const
|
|
300
|
-
|
|
301
|
-
|
|
44
|
+
const manipulateChatscanTableHighlight = ({
|
|
45
|
+
tableClass,
|
|
46
|
+
dataAttribute,
|
|
47
|
+
dataValue,
|
|
48
|
+
cssClass,
|
|
49
|
+
action
|
|
50
|
+
}) => {
|
|
51
|
+
const selector = `table.${tableClass} tr[data-${dataAttribute}="${dataValue}"]`;
|
|
52
|
+
const elements = $(selector);
|
|
53
|
+
|
|
54
|
+
if (action === 'add') {
|
|
55
|
+
elements.addClass(cssClass);
|
|
56
|
+
} else if (action === 'remove') {
|
|
57
|
+
elements.removeClass(cssClass);
|
|
58
|
+
}
|
|
302
59
|
};
|
|
303
60
|
|
|
304
|
-
|
|
305
61
|
/**
|
|
306
62
|
* Add a highlight to other tables from alliance table
|
|
307
63
|
*
|
|
308
64
|
* @param {string} byData The table data attribute for which this function is triggered
|
|
309
|
-
* @param {
|
|
65
|
+
* @param {jQuery|HTMLElement} tableRow The table row that is to be changed
|
|
66
|
+
* @return {void}
|
|
310
67
|
*/
|
|
311
68
|
const addChatscanHighlight = (byData, tableRow) => { // eslint-disable-line no-unused-vars
|
|
312
69
|
tableRow.addClass('aa-intel-highlight');
|
|
313
70
|
|
|
314
71
|
if (byData === 'alliance') {
|
|
315
|
-
corporationTableAddHighlightByAllianceId(tableRow);
|
|
316
|
-
|
|
72
|
+
// corporationTableAddHighlightByAllianceId(tableRow);
|
|
73
|
+
manipulateChatscanTableHighlight({
|
|
74
|
+
tableClass: 'aa-intel-corporation-participation-list',
|
|
75
|
+
dataAttribute: 'alliance-id',
|
|
76
|
+
dataValue: tableRow.data('allianceId'),
|
|
77
|
+
cssClass: 'aa-intel-highlight',
|
|
78
|
+
action: 'add'
|
|
79
|
+
});
|
|
80
|
+
// pilotTableAddHighlightByAllianceId(tableRow);
|
|
81
|
+
manipulateChatscanTableHighlight({
|
|
82
|
+
tableClass: 'aa-intel-pilot-participation-list',
|
|
83
|
+
dataAttribute: 'alliance-id',
|
|
84
|
+
dataValue: tableRow.data('allianceId'),
|
|
85
|
+
cssClass: 'aa-intel-highlight',
|
|
86
|
+
action: 'add'
|
|
87
|
+
});
|
|
317
88
|
}
|
|
318
89
|
|
|
319
90
|
if (byData === 'corporation') {
|
|
320
|
-
allianceTableAddHighlightByAllianceId(tableRow);
|
|
321
|
-
|
|
91
|
+
// allianceTableAddHighlightByAllianceId(tableRow);
|
|
92
|
+
manipulateChatscanTableHighlight({
|
|
93
|
+
tableClass: 'aa-intel-alliance-participation-list',
|
|
94
|
+
dataAttribute: 'alliance-id',
|
|
95
|
+
dataValue: tableRow.data('allianceId'),
|
|
96
|
+
cssClass: 'aa-intel-highlight',
|
|
97
|
+
action: 'add'
|
|
98
|
+
});
|
|
99
|
+
// pilotTableAddHighlightByCorporationId(tableRow);
|
|
100
|
+
manipulateChatscanTableHighlight({
|
|
101
|
+
tableClass: 'aa-intel-pilot-participation-list',
|
|
102
|
+
dataAttribute: 'corporation-id',
|
|
103
|
+
dataValue: tableRow.data('corporationId'),
|
|
104
|
+
cssClass: 'aa-intel-highlight',
|
|
105
|
+
action: 'add'
|
|
106
|
+
});
|
|
322
107
|
}
|
|
323
108
|
|
|
324
109
|
if (byData === 'pilot') {
|
|
325
|
-
allianceTableAddHighlightByAllianceId(tableRow);
|
|
326
|
-
|
|
110
|
+
// allianceTableAddHighlightByAllianceId(tableRow);
|
|
111
|
+
manipulateChatscanTableHighlight({
|
|
112
|
+
tableClass: 'aa-intel-alliance-participation-list',
|
|
113
|
+
dataAttribute: 'alliance-id',
|
|
114
|
+
dataValue: tableRow.data('allianceId'),
|
|
115
|
+
cssClass: 'aa-intel-highlight',
|
|
116
|
+
action: 'add'
|
|
117
|
+
});
|
|
118
|
+
// corporationTableAddHighlightByCorporationId(tableRow);
|
|
119
|
+
manipulateChatscanTableHighlight({
|
|
120
|
+
tableClass: 'aa-intel-corporation-participation-list',
|
|
121
|
+
dataAttribute: 'corporation-id',
|
|
122
|
+
dataValue: tableRow.data('corporationId'),
|
|
123
|
+
cssClass: 'aa-intel-highlight',
|
|
124
|
+
action: 'add'
|
|
125
|
+
});
|
|
327
126
|
}
|
|
328
127
|
};
|
|
329
128
|
|
|
330
|
-
|
|
331
129
|
/**
|
|
332
130
|
* Add sticky highlight to other tables from alliance table
|
|
333
131
|
*
|
|
334
132
|
* @param {string} byData The table data attribute for which this function is triggered
|
|
335
|
-
* @param {
|
|
133
|
+
* @param {jQuery|HTMLElement} tableRow The table row that is to be changed
|
|
134
|
+
* @return {void}
|
|
336
135
|
*/
|
|
337
136
|
const addChatscanSticky = (byData, tableRow) => {
|
|
338
137
|
tableRow.addClass('aa-intel-highlight-sticky');
|
|
339
138
|
|
|
340
139
|
if (byData === 'alliance') {
|
|
341
|
-
corporationTableAddStickyByAllianceId(tableRow);
|
|
342
|
-
|
|
140
|
+
// corporationTableAddStickyByAllianceId(tableRow);
|
|
141
|
+
manipulateChatscanTableHighlight({
|
|
142
|
+
tableClass: 'aa-intel-corporation-participation-list',
|
|
143
|
+
dataAttribute: 'alliance-id',
|
|
144
|
+
dataValue: tableRow.data('allianceId'),
|
|
145
|
+
cssClass: 'aa-intel-highlight-sticky',
|
|
146
|
+
action: 'add'
|
|
147
|
+
});
|
|
148
|
+
// pilotTableAddStickyByAllianceId(tableRow);
|
|
149
|
+
manipulateChatscanTableHighlight({
|
|
150
|
+
tableClass: 'aa-intel-pilot-participation-list',
|
|
151
|
+
dataAttribute: 'alliance-id',
|
|
152
|
+
dataValue: tableRow.data('allianceId'),
|
|
153
|
+
cssClass: 'aa-intel-highlight-sticky',
|
|
154
|
+
action: 'add'
|
|
155
|
+
});
|
|
343
156
|
}
|
|
344
157
|
|
|
345
158
|
if (byData === 'corporation') {
|
|
346
|
-
allianceTableAddStickyByAllianceId(tableRow);
|
|
347
|
-
|
|
159
|
+
// allianceTableAddStickyByAllianceId(tableRow);
|
|
160
|
+
manipulateChatscanTableHighlight({
|
|
161
|
+
tableClass: 'aa-intel-alliance-participation-list',
|
|
162
|
+
dataAttribute: 'alliance-id',
|
|
163
|
+
dataValue: tableRow.data('allianceId'),
|
|
164
|
+
cssClass: 'aa-intel-highlight-sticky',
|
|
165
|
+
action: 'add'
|
|
166
|
+
});
|
|
167
|
+
// pilotTableAddStickyByCorporationId(tableRow);
|
|
168
|
+
manipulateChatscanTableHighlight({
|
|
169
|
+
tableClass: 'aa-intel-pilot-participation-list',
|
|
170
|
+
dataAttribute: 'corporation-id',
|
|
171
|
+
dataValue: tableRow.data('corporationId'),
|
|
172
|
+
cssClass: 'aa-intel-highlight-sticky',
|
|
173
|
+
action: 'add'
|
|
174
|
+
});
|
|
348
175
|
}
|
|
349
176
|
|
|
350
177
|
if (byData === 'pilot') {
|
|
351
|
-
allianceTableAddStickyByAllianceId(tableRow);
|
|
352
|
-
|
|
178
|
+
// allianceTableAddStickyByAllianceId(tableRow);
|
|
179
|
+
manipulateChatscanTableHighlight({
|
|
180
|
+
tableClass: 'aa-intel-alliance-participation-list',
|
|
181
|
+
dataAttribute: 'alliance-id',
|
|
182
|
+
dataValue: tableRow.data('allianceId'),
|
|
183
|
+
cssClass: 'aa-intel-highlight-sticky',
|
|
184
|
+
action: 'add'
|
|
185
|
+
});
|
|
186
|
+
// corporationTableAddStickyByCorporationId(tableRow);
|
|
187
|
+
manipulateChatscanTableHighlight({
|
|
188
|
+
tableClass: 'aa-intel-corporation-participation-list',
|
|
189
|
+
dataAttribute: 'corporation-id',
|
|
190
|
+
dataValue: tableRow.data('corporationId'),
|
|
191
|
+
cssClass: 'aa-intel-highlight-sticky',
|
|
192
|
+
action: 'add'
|
|
193
|
+
});
|
|
353
194
|
}
|
|
354
195
|
};
|
|
355
196
|
|
|
356
|
-
|
|
357
197
|
/**
|
|
358
198
|
* Remove highlight to other tables from alliance table
|
|
359
199
|
*
|
|
360
200
|
* @param {string} byData The table data attribute for which this function is triggered
|
|
361
|
-
* @param {
|
|
201
|
+
* @param {jQuery|HTMLElement} tableRow The table row that is to be changed
|
|
202
|
+
* @return {void}
|
|
362
203
|
*/
|
|
363
204
|
const removeChatscanHighlight = (byData, tableRow) => { // eslint-disable-line no-unused-vars
|
|
364
205
|
tableRow.removeClass('aa-intel-highlight');
|
|
365
206
|
|
|
366
207
|
if (byData === 'alliance') {
|
|
367
|
-
corporationTableRemoveHighlightByAllianceId(tableRow);
|
|
368
|
-
|
|
208
|
+
// corporationTableRemoveHighlightByAllianceId(tableRow);
|
|
209
|
+
manipulateChatscanTableHighlight({
|
|
210
|
+
tableClass: 'aa-intel-corporation-participation-list',
|
|
211
|
+
dataAttribute: 'alliance-id',
|
|
212
|
+
dataValue: tableRow.data('allianceId'),
|
|
213
|
+
cssClass: 'aa-intel-highlight',
|
|
214
|
+
action: 'remove'
|
|
215
|
+
});
|
|
216
|
+
// pilotTableRemoveHighlightByAllianceId(tableRow);
|
|
217
|
+
manipulateChatscanTableHighlight({
|
|
218
|
+
tableClass: 'aa-intel-pilot-participation-list',
|
|
219
|
+
dataAttribute: 'alliance-id',
|
|
220
|
+
dataValue: tableRow.data('allianceId'),
|
|
221
|
+
cssClass: 'aa-intel-highlight',
|
|
222
|
+
action: 'remove'
|
|
223
|
+
});
|
|
369
224
|
}
|
|
370
225
|
|
|
371
226
|
if (byData === 'corporation') {
|
|
372
|
-
allianceTableRemoveHighlightByAllianceId(tableRow);
|
|
373
|
-
|
|
227
|
+
// allianceTableRemoveHighlightByAllianceId(tableRow);
|
|
228
|
+
manipulateChatscanTableHighlight({
|
|
229
|
+
tableClass: 'aa-intel-alliance-participation-list',
|
|
230
|
+
dataAttribute: 'alliance-id',
|
|
231
|
+
dataValue: tableRow.data('allianceId'),
|
|
232
|
+
cssClass: 'aa-intel-highlight',
|
|
233
|
+
action: 'remove'
|
|
234
|
+
});
|
|
235
|
+
// pilotTableRemoveHighlightByCorporationId(tableRow);
|
|
236
|
+
manipulateChatscanTableHighlight({
|
|
237
|
+
tableClass: 'aa-intel-pilot-participation-list',
|
|
238
|
+
dataAttribute: 'corporation-id',
|
|
239
|
+
dataValue: tableRow.data('corporationId'),
|
|
240
|
+
cssClass: 'aa-intel-highlight',
|
|
241
|
+
action: 'remove'
|
|
242
|
+
});
|
|
374
243
|
}
|
|
375
244
|
|
|
376
245
|
if (byData === 'pilot') {
|
|
377
|
-
allianceTableRemoveHighlightByAllianceId(tableRow);
|
|
378
|
-
|
|
246
|
+
// allianceTableRemoveHighlightByAllianceId(tableRow);
|
|
247
|
+
manipulateChatscanTableHighlight({
|
|
248
|
+
tableClass: 'aa-intel-alliance-participation-list',
|
|
249
|
+
dataAttribute: 'alliance-id',
|
|
250
|
+
dataValue: tableRow.data('allianceId'),
|
|
251
|
+
cssClass: 'aa-intel-highlight',
|
|
252
|
+
action: 'remove'
|
|
253
|
+
});
|
|
254
|
+
// corporationTableRemoveHighlightByCorporationId(tableRow);
|
|
255
|
+
manipulateChatscanTableHighlight({
|
|
256
|
+
tableClass: 'aa-intel-corporation-participation-list',
|
|
257
|
+
dataAttribute: 'corporation-id',
|
|
258
|
+
dataValue: tableRow.data('corporationId'),
|
|
259
|
+
cssClass: 'aa-intel-highlight',
|
|
260
|
+
action: 'remove'
|
|
261
|
+
});
|
|
379
262
|
}
|
|
380
263
|
};
|
|
381
264
|
|
|
382
|
-
|
|
383
265
|
/**
|
|
384
266
|
* Remove sticky highlight to other tables from alliance table
|
|
385
267
|
*
|
|
386
268
|
* @param {string} byData The table data attribute for which this function is triggered
|
|
387
|
-
* @param {
|
|
269
|
+
* @param {jQuery|HTMLElement} tableRow The table row that is to be changed
|
|
270
|
+
* @return {void}
|
|
388
271
|
*/
|
|
389
272
|
const removeChatscanSticky = (byData, tableRow) => {
|
|
390
273
|
tableRow.removeClass('aa-intel-highlight-sticky');
|
|
391
274
|
|
|
392
275
|
if (byData === 'alliance') {
|
|
393
|
-
corporationTableRemoveStickyByAllianceId(tableRow);
|
|
394
|
-
|
|
276
|
+
// corporationTableRemoveStickyByAllianceId(tableRow);
|
|
277
|
+
manipulateChatscanTableHighlight({
|
|
278
|
+
tableClass: 'aa-intel-corporation-participation-list',
|
|
279
|
+
dataAttribute: 'alliance-id',
|
|
280
|
+
dataValue: tableRow.data('allianceId'),
|
|
281
|
+
cssClass: 'aa-intel-highlight-sticky',
|
|
282
|
+
action: 'remove'
|
|
283
|
+
});
|
|
284
|
+
// pilotTableRemoveStickyByAllianceId(tableRow);
|
|
285
|
+
manipulateChatscanTableHighlight({
|
|
286
|
+
tableClass: 'aa-intel-pilot-participation-list',
|
|
287
|
+
dataAttribute: 'alliance-id',
|
|
288
|
+
dataValue: tableRow.data('allianceId'),
|
|
289
|
+
cssClass: 'aa-intel-highlight-sticky',
|
|
290
|
+
action: 'remove'
|
|
291
|
+
});
|
|
395
292
|
}
|
|
396
293
|
|
|
397
294
|
if (byData === 'corporation') {
|
|
398
|
-
pilotTableRemoveStickyByCorporationId(tableRow);
|
|
295
|
+
// pilotTableRemoveStickyByCorporationId(tableRow);
|
|
296
|
+
manipulateChatscanTableHighlight({
|
|
297
|
+
tableClass: 'aa-intel-pilot-participation-list',
|
|
298
|
+
dataAttribute: 'corporation-id',
|
|
299
|
+
dataValue: tableRow.data('corporationId'),
|
|
300
|
+
cssClass: 'aa-intel-highlight-sticky',
|
|
301
|
+
action: 'remove'
|
|
302
|
+
});
|
|
399
303
|
|
|
400
304
|
if (removeAllianceStickyComplete(tableRow) === true) {
|
|
401
|
-
allianceTableRemoveStickyByAllianceId(tableRow);
|
|
305
|
+
// allianceTableRemoveStickyByAllianceId(tableRow);
|
|
306
|
+
manipulateChatscanTableHighlight({
|
|
307
|
+
tableClass: 'aa-intel-alliance-participation-list',
|
|
308
|
+
dataAttribute: 'alliance-id',
|
|
309
|
+
dataValue: tableRow.data('allianceId'),
|
|
310
|
+
cssClass: 'aa-intel-highlight-sticky',
|
|
311
|
+
action: 'remove'
|
|
312
|
+
});
|
|
402
313
|
}
|
|
403
314
|
}
|
|
404
315
|
|
|
405
316
|
if (byData === 'pilot') {
|
|
406
317
|
if (removeCorporationStickyComplete(tableRow) === true) {
|
|
407
|
-
corporationTableRemoveStickyByCorporationId(tableRow);
|
|
318
|
+
// corporationTableRemoveStickyByCorporationId(tableRow);
|
|
319
|
+
manipulateChatscanTableHighlight({
|
|
320
|
+
tableClass: 'aa-intel-corporation-participation-list',
|
|
321
|
+
dataAttribute: 'corporation-id',
|
|
322
|
+
dataValue: tableRow.data('corporationId'),
|
|
323
|
+
cssClass: 'aa-intel-highlight-sticky',
|
|
324
|
+
action: 'remove'
|
|
325
|
+
});
|
|
408
326
|
}
|
|
409
327
|
|
|
410
328
|
if (removeAllianceStickyComplete(tableRow) === true) {
|
|
411
|
-
allianceTableRemoveStickyByAllianceId(tableRow);
|
|
329
|
+
// allianceTableRemoveStickyByAllianceId(tableRow);
|
|
330
|
+
manipulateChatscanTableHighlight({
|
|
331
|
+
tableClass: 'aa-intel-alliance-participation-list',
|
|
332
|
+
dataAttribute: 'alliance-id',
|
|
333
|
+
dataValue: tableRow.data('allianceId'),
|
|
334
|
+
cssClass: 'aa-intel-highlight-sticky',
|
|
335
|
+
action: 'remove'
|
|
336
|
+
});
|
|
412
337
|
}
|
|
413
338
|
}
|
|
414
339
|
};
|
|
415
340
|
|
|
416
|
-
|
|
417
341
|
/**
|
|
418
342
|
* Change the status of the sticky highlight
|
|
419
343
|
*
|
|
420
344
|
* @param {string} byData The table data attribute for which this function is triggered
|
|
421
|
-
* @param {
|
|
345
|
+
* @param {jQuery|HTMLElement} tableRow The table row that is to be changed
|
|
346
|
+
* @return {void}
|
|
422
347
|
*/
|
|
423
348
|
const changeChatscanStickyHighlight = (byData, tableRow) => { // eslint-disable-line no-unused-vars
|
|
424
349
|
if (tableRow.hasClass('aa-intel-highlight-sticky')) {
|