added header tooltips

This commit is contained in:
Baris Soner Usakli
2014-01-27 01:48:43 -05:00
parent c18788fbc9
commit 9cb232c198
3 changed files with 22 additions and 4 deletions

View File

@@ -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();