2014-01-18 12:25:20 -07:00
|
|
|
|
(function ($, document, window) {
|
|
|
|
|
|
|
|
|
|
function loadPage(page, systemInfo) {
|
|
|
|
|
|
|
|
|
|
$('#cachePath', page).html(systemInfo.CachePath);
|
|
|
|
|
$('#logPath', page).html(systemInfo.LogPath);
|
|
|
|
|
$('#imagesByNamePath', page).html(systemInfo.ItemsByNamePath);
|
|
|
|
|
$('#transcodingTemporaryPath', page).html(systemInfo.TranscodingTempPath);
|
2014-03-31 14:04:22 -07:00
|
|
|
|
$('#metadataPath', page).html(systemInfo.InternalMetadataPath);
|
2014-01-18 12:25:20 -07:00
|
|
|
|
|
|
|
|
|
if (systemInfo.WanAddress) {
|
|
|
|
|
|
|
|
|
|
var externalUrl = systemInfo.WanAddress + "/mediabrowser";
|
|
|
|
|
|
2014-02-26 14:31:47 -07:00
|
|
|
|
$('.externalUrl', page).html('Remote access: <a href="' + externalUrl + '" target="_blank">' + externalUrl + '</a>').show().trigger('create');
|
2014-01-18 12:25:20 -07:00
|
|
|
|
} else {
|
|
|
|
|
$('.externalUrl', page).hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Dashboard.hideLoadingMsg();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$(document).on('pageshow', "#dashboardInfoPage", function () {
|
|
|
|
|
|
|
|
|
|
Dashboard.showLoadingMsg();
|
|
|
|
|
|
|
|
|
|
var page = this;
|
|
|
|
|
|
|
|
|
|
ApiClient.getSystemInfo().done(function (systemInfo) {
|
|
|
|
|
|
|
|
|
|
loadPage(page, systemInfo);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
})(jQuery, document, window);
|