diff --git a/share/jupyter/hub/static/js/admin.js b/share/jupyter/hub/static/js/admin.js index 30b22a38..cb5c9cc6 100644 --- a/share/jupyter/hub/static/js/admin.js +++ b/share/jupyter/hub/static/js/admin.js @@ -178,6 +178,15 @@ require(["jquery", "bootstrap", "moment", "jhapi", "utils"], function ($, bs, mo }); }); + $("#stop-all-servers").click(function () { + $("#stop-all-servers-dialog").modal(); + }); + + $("#stop-all-servers-dialog").find(".stop-all-button").click(function () { + // stop all clicks all the active stop buttons + $('.stop-server').not('.hidden').click(); + }); + $("#shutdown-hub").click(function () { var dialog = $("#shutdown-hub-dialog"); dialog.find("input[type=checkbox]").prop("checked", true); diff --git a/share/jupyter/hub/templates/admin.html b/share/jupyter/hub/templates/admin.html index 5e7878fe..592bc536 100644 --- a/share/jupyter/hub/templates/admin.html +++ b/share/jupyter/hub/templates/admin.html @@ -32,8 +32,9 @@