jellyfin-web/dashboard-ui/scripts/aboutpage.js

30 lines
770 B
JavaScript
Raw Normal View History

2016-03-15 22:33:31 -07:00
define([], function () {
2013-03-14 19:42:18 -07:00
2016-04-12 23:02:07 -07:00
function getTabs() {
return [
{
href: 'about.html',
name: Globalize.translate('TabAbout')
},
{
href: 'log.html',
name: Globalize.translate('TabLogs')
},
{
href: 'supporterkey.html',
name: Globalize.translate('TabEmbyPremiere')
}];
}
2016-03-15 22:33:31 -07:00
return function (view, params) {
2013-03-14 19:42:18 -07:00
2016-03-15 22:33:31 -07:00
var self = this;
2014-04-05 08:02:50 -07:00
2016-03-15 22:33:31 -07:00
view.addEventListener('viewbeforeshow', function (e) {
2016-04-12 23:02:07 -07:00
LibraryMenu.setTabs('helpadmin', 0, getTabs);
2016-03-15 22:33:31 -07:00
var elem = view.querySelector('#appVersionNumber');
2013-03-14 19:42:18 -07:00
2016-03-15 22:33:31 -07:00
elem.innerHTML = elem.innerHTML.replace('{0}', ConnectionManager.appVersion());
});
}
});