/usr/share/hotot/js/ui.dm_tabs.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 | if (typeof ui == 'undefined') var ui = {};
ui.DMTabs = {
current: null,
init:
function init() {
var btns = new widget.RadioGroup('#dm_radio_group');
btns.on_clicked = function (btn, event) {
ui.DMTabs.current = $(btn).attr('href');
var page_name = ui.DMTabs.current + '_sub_block';
$('#direct_messages_tweet_block .tweet_sub_block').not(page_name).hide();
$(page_name).show();
toast.set("Loading Tweets...").show(-1);
daemon.update_direct_messages();
};
btns.create();
ui.DMTabs.current = '#direct_messages_inbox';
$(ui.DMTabs.current + '_sub_block').show();
}
};
|