mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
added header tooltips
This commit is contained in:
@@ -537,12 +537,28 @@ var socket,
|
||||
app.alternatingTitle('');
|
||||
});
|
||||
|
||||
createHeaderTooltips();
|
||||
|
||||
templates.setGlobal('relative_path', RELATIVE_PATH);
|
||||
templates.setGlobal('usePagination', config.usePagination);
|
||||
templates.setGlobal('topicsPerPage', config.topicsPerPage);
|
||||
templates.setGlobal('postsPerPage', config.postsPerPage);
|
||||
});
|
||||
|
||||
function createHeaderTooltips() {
|
||||
$('#header-menu li i[title]').each(function() {
|
||||
$(this).parents('li').tooltip({
|
||||
placement: 'bottom',
|
||||
title: $(this).attr('title')
|
||||
});
|
||||
});
|
||||
|
||||
$('#user_label').tooltip({
|
||||
placement: 'bottom',
|
||||
title: $('#user_dropdown').attr('title')
|
||||
});
|
||||
}
|
||||
|
||||
showWelcomeMessage = location.href.indexOf('loggedin') !== -1;
|
||||
|
||||
app.loadConfig();
|
||||
|
||||
Reference in New Issue
Block a user