/usr/share/hotot/js/ui.header.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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | if (typeof ui == 'undefined') var ui = {};
ui.Header = {
isHototMenuClosed: true,
init:
function init () {
$('#btn_my_profile').click(
function (event) {
open_people(globals.myself.screen_name);
}).mouseenter(function(event) {
globals.ratelimit_bubble.place(widget.Bubble.BOTTOM
, widget.Bubble.ALIGN_LEFT);
globals.ratelimit_bubble.show();
});
$('#btn_my_profile').mouseleave(
function (event) {
ui.Header.closeHototMenu();
globals.ratelimit_bubble.hide();
});
$('#hotot_menu').mouseleave(
function (event) {
ui.Header.closeHototMenu();
});
$('#btn_reload').click(
function(event) {
daemon.update_all();
});
$('#btn_prefs').click(
function (event) {
ui.PrefsDlg.load_settings(conf.settings);
ui.PrefsDlg.load_prefs();
globals.prefs_dialog.open();
});
$('#btn_kismet').click(
function (event) {
ui.KismetDlg.reload();
globals.kismet_dialog.open();
});
$('#btn_about').click(
function (event) {
globals.about_dialog.open();
});
$('#btn_sign_out').click(
function (event) {
ui.Slider.save_state();
conf.save_prefs(conf.current_name, function() {
for (var k in ui.Main.views) {
ui.Slider.remove(ui.Main.views[k].name, true);
}
globals.layout.close('north');
globals.layout.close('south');
ui.Main.hide();
ui.Welcome.show();
daemon.stop();
});
});
},
openHototMenu:
function openHototMenu() {
$('#hotot_button').addClass('hlight');
$('#hotot_menu').show();
ui.Header.isHototMenuClosed = false;
},
closeHototMenu:
function closeHototMenu() {
$('#hotot_button').removeClass('hlight');
$('#hotot_menu').hide();
ui.Header.isHototMenuClosed = true;
},
closeAll:
function closeAll() {
ui.Slider.closeSliderMenu();
ui.Header.closeHototMenu();
ui.Main.closeTweetMoreMenu();
}
};
|