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

make it clear the restart button is only restarting mb3

This commit is contained in:
Luke Pulverenti 2013-07-16 14:19:01 -04:00
parent 56532b90c0
commit 13ed0e427d
2 changed files with 15 additions and 1 deletions

View file

@ -55,7 +55,9 @@
<p><a href="scheduledtasks.html">Manage Scheduled Tasks</a></p> <p><a href="scheduledtasks.html">Manage Scheduled Tasks</a></p>
</div> </div>
<div style="margin-top: 2em;"><button type="button" data-icon="refresh" data-mini="true" data-inline="true" onclick="$(this).button('disable');Dashboard.restartServer();">Restart server</button></div> <div style="margin-top: 2em;">
<button type="button" data-icon="refresh" data-mini="true" data-inline="true" onclick="DashboardPage.restart();">Restart MB Server</button>
</div>
<div style="display: none; margin-top: 4em;" id="contribute"> <div style="display: none; margin-top: 4em;" id="contribute">
<h3 style="padding-left: 1em;">Help improve Media Browser</h3> <h3 style="padding-left: 1em;">Help improve Media Browser</h3>

View file

@ -472,6 +472,18 @@
DashboardPage.pollForInfo(); DashboardPage.pollForInfo();
}); });
},
restart: function () {
Dashboard.confirm("Are you sure you wish to restart Media Browser Server?", "Restart", function (result) {
if (result) {
$(this).button('disable');
Dashboard.restartServer();
}
});
} }
}; };