1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

added in-app help

This commit is contained in:
Luke Pulverenti 2014-12-22 23:53:52 -05:00
parent b2cbf5ecb4
commit 51ce474ec4
4 changed files with 25 additions and 11 deletions

View file

@ -1095,7 +1095,18 @@ var Dashboard = {
parent = $('.ui-content', page)[0];
}
$(parent).prepend("<h1 class='pageTitle'>" + (document.title || "&nbsp;") + "</h1>");
var helpUrl = page.attr('data-helpurl');
var html = '<div>';
html += '<h1 class="pageTitle" style="display:inline-block;">' + (document.title || '&nbsp;') + '</h1>';
if (helpUrl) {
html += '<a href="' + helpUrl + '" target="_blank" class="accentButton accentButton-g" style="margin-top:-10px;"><i class="fa fa-info-circle"></i>' + Globalize.translate('ButtonHelp') + '</a>';
}
html += '</div>';
$(parent).prepend(html);
},
setPageTitle: function (title) {