This file is indexed.

/usr/share/hotot/js/widget.button.js is in hotot-common 1:0.9.8.14-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
if (typeof(widget) == 'undefined') widget = {}
function WidgetButton(obj) {
    var self = this;
    self._me = null;

    self._sensitive = true;

    self.init = function init(obj) {
        if (typeof (obj) == 'string') {
            self._me = $(obj);
        } else {
            self._me = obj;
        }        
    };

    self.create = function create() {
        // bind events
        self._me.click(function (event) {
            if (self._sensitive) {
                if (self.on_clicked != null) {
                    self.on_clicked(self, event);
                }
                self._on_clicked(event);
            }
        });
    };

    self.set_label = function set_label(text) {
        self._me.text(text);
    };

    self.get_label = function get_label() {
        return self._me.text();
    };

    self.set_sensitive = function set_sensitive(val) {
        self._sensitive = val;
        if (self._sensitive) {
            self._me.removeClass('disabled');
        } else {
            self._me.addClass('disabled');
        }
    };

    self.click = function click() {
        self._me.click();
    }

    self._on_clicked = function _on_clicked(event) {};
    
    self.init(obj);
}

widget.Button = WidgetButton;