mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
implemented shutdown button
This commit is contained in:
parent
5124b240f0
commit
cb5da9caca
6 changed files with 31 additions and 4 deletions
|
@ -514,9 +514,23 @@
|
|||
|
||||
if (result) {
|
||||
$('#btnRestartServer').button('disable');
|
||||
$('#btnShutdown').button('disable');
|
||||
Dashboard.restartServer();
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
shutdown: function () {
|
||||
|
||||
Dashboard.confirm("Are you sure you wish to shutdown Media Browser Server?", "Shutdown", function (result) {
|
||||
|
||||
if (result) {
|
||||
$('#btnRestartServer').button('disable');
|
||||
$('#btnShutdown').button('disable');
|
||||
ApiClient.shutdownServer();
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -203,7 +203,7 @@
|
|||
}
|
||||
else if (item.Type == "Game") {
|
||||
|
||||
html += '<p class="itemMiscInfo">' + (item.DisplayMediaType || item.GameSystem) + '</p>';
|
||||
html += '<p class="itemMiscInfo">' + (item.GameSystem) + '</p>';
|
||||
}
|
||||
else if (item.Type == "Episode") {
|
||||
|
||||
|
|
|
@ -177,7 +177,7 @@
|
|||
|
||||
}
|
||||
else {
|
||||
html += '<div class="searchHintSecondaryText">' + (hint.DisplayMediaType || hint.Type) + '</div>';
|
||||
html += '<div class="searchHintSecondaryText">' + (hint.Type) + '</div>';
|
||||
}
|
||||
|
||||
var text;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue