foist
[kismet-logviewer.git] / logviewer / static / js / kismet.ui.bluetooth.js
1 "use strict";
2
3 kismet_ui.AddDeviceRowHighlight({
4     name: "Bluetooth Device",
5     description: "Highlight all Bluetooth devices",
6     priority: 100,
7     defaultcolor: "#b3d1ff",
8     defaultenable: false,
9     fields: [
10         'bluetooth.device'
11     ],
12     selector: function(data) {
13         return ('bluetooth.device' in data && data['bluetooth.device'] != 0);
14     }
15 });
16
17 kismet_ui.AddDeviceRowHighlight({
18     name: "Bluetooth BR/EDR Device",
19     description: "Highlight classic BR/EDR Bluetooth devices",
20     priority: 101,
21     defaultcolor: "#ddccff",
22     defaultenable: false,
23     fields: [
24         'kismet.device.base.type',
25     ],
26     selector: function(data) {
27         return (data['kismet.device.base.type'] === 'BR/EDR');
28     }
29 });
30
31 kismet_ui.AddDeviceRowHighlight({
32     name: "Bluetooth BLE Device",
33     description: "Highlight BLE Bluetooth devices",
34     priority: 101,
35     defaultcolor: "#b3d9ff",
36     defaultenable: false,
37     fields: [
38         'kismet.device.base.type',
39     ],
40     selector: function(data) {
41         return (data['kismet.device.base.type'] === 'BTLE');
42     }
43 });
44