mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
fixes #370 - Suppress Could not connect to Remote Repository message?
This commit is contained in:
parent
1200f8284d
commit
c47ef405bb
@ -25,6 +25,7 @@
|
||||
<p id="newVersionNumber"></p>
|
||||
<button id="btnUpdateApplication" type="button" data-icon="download" data-theme="b" onclick="DashboardPage.updateApplication();">Update Now</button>
|
||||
</div>
|
||||
<div id="updateFail" style="color: #cc0000; display: none;">There was an error connecting to the remote Media Browser repository.</div>
|
||||
<p id="ports"></p>
|
||||
<p style="display: none;">Program data path: <span id="programDataPath"></span></p>
|
||||
<p>Bookmark url: <a id="bookmarkUrl" href="#" data-ajax="false" onclick="return !DashboardPage.bookmarkPageIfSupported(this.href);"></a></p>
|
||||
@ -54,7 +55,7 @@
|
||||
<p><a href="scheduledtasks.html">Manage Scheduled Tasks</a></p>
|
||||
</div>
|
||||
|
||||
<div style="display:none;margin-top: 100px;" id="contribute">
|
||||
<div style="display: none; margin-top: 100px;" id="contribute">
|
||||
<h3 style="padding-left: 1em;">Help improve Media Browser</h3>
|
||||
<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr"
|
||||
method="post">
|
||||
|
@ -146,39 +146,39 @@
|
||||
imgUrl = 'css/images/clients/html5.png';
|
||||
}
|
||||
|
||||
return "<img src='" + imgUrl + "' alt='Dashboard' title='Dashboard' />";
|
||||
return "<img src='" + imgUrl + "' alt='Dashboard' />";
|
||||
}
|
||||
if (clientLowered == "mb-classic") {
|
||||
|
||||
return "<img src='css/images/clients/mbc.png' alt='Media Browser Classic' title='Media Browser Classic' />";
|
||||
return "<img src='css/images/clients/mbc.png' alt='Media Browser Classic' />";
|
||||
}
|
||||
if (clientLowered == "media browser theater") {
|
||||
|
||||
return "<img src='css/images/clients/mb.png' alt='Media Browser Theater' title='Media Browser Theater' />";
|
||||
return "<img src='css/images/clients/mb.png' alt='Media Browser Theater' />";
|
||||
}
|
||||
if (clientLowered == "android") {
|
||||
|
||||
return "<img src='css/images/clients/android.png' alt='Android' title='Android' />";
|
||||
return "<img src='css/images/clients/android.png' alt='Android' />";
|
||||
}
|
||||
if (clientLowered == "roku") {
|
||||
|
||||
return "<img src='css/images/clients/roku.jpg' alt='Roku' title='Roku' />";
|
||||
return "<img src='css/images/clients/roku.jpg' alt='Roku' />";
|
||||
}
|
||||
if (clientLowered == "ios") {
|
||||
|
||||
return "<img src='css/images/clients/ios.png' alt='iOS' title='iOS' />";
|
||||
return "<img src='css/images/clients/ios.png' alt='iOS' />";
|
||||
}
|
||||
if (clientLowered == "windows rt") {
|
||||
|
||||
return "<img src='css/images/clients/windowsrt.png' alt='Windows RT' title='Windows RT' />";
|
||||
return "<img src='css/images/clients/windowsrt.png' alt='Windows RT' />";
|
||||
}
|
||||
if (clientLowered == "windows phone") {
|
||||
|
||||
return "<img src='css/images/clients/windowsphone.png' alt='Windows Phone' title='Windows Phone' />";
|
||||
return "<img src='css/images/clients/windowsphone.png' alt='Windows Phone' />";
|
||||
}
|
||||
if (clientLowered == "dlna") {
|
||||
|
||||
return "<img src='css/images/clients/dlna.png' alt='Dlna' title='Dlna' />";
|
||||
return "<img src='css/images/clients/dlna.png' alt='Dlna' />";
|
||||
}
|
||||
|
||||
return connection.Client;
|
||||
@ -320,6 +320,8 @@
|
||||
|
||||
var page = $.mobile.activePage;
|
||||
|
||||
$('#updateFail', page).hide();
|
||||
|
||||
if (dashboardInfo.SystemInfo.IsNetworkDeployed && !dashboardInfo.SystemInfo.HasPendingRestart) {
|
||||
|
||||
// Only check once every 10 mins
|
||||
@ -346,7 +348,7 @@
|
||||
|
||||
}).fail(function () {
|
||||
|
||||
Dashboard.showFooterNotification({ html: '<img src="css/images/notifications/error.png" class="notificationIcon" />There was an error connecting to the remote Media Browser repository.', id: "MB3ConnectionError" });
|
||||
$('#updateFail', page).show();
|
||||
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user