diff --git a/data/interfaces/default/base.html b/data/interfaces/default/base.html index 1f9e1a84..279c9b74 100644 --- a/data/interfaces/default/base.html +++ b/data/interfaces/default/base.html @@ -269,7 +269,10 @@ ${next.headerIncludes()} }); $("#nav-restart").click(function () { - window.location.href = "restart"; + var r = confirm("Are you sure you want to restart PlexPy?"); + if (r == true) { + window.location.href = "restart"; + } }); $("#nav-update").first().one("click", function () { diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index 747034e1..33d317e6 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -2052,7 +2052,10 @@ $(document).ready(function() { }); $("#menu_link_restart").click(function() { - window.location.href = "restart"; + var r = confirm("Are you sure you want to restart PlexPy?"); + if (r == true) { + window.location.href = "restart"; + } }); $("#menu_link_update_check").click(function() { @@ -2063,6 +2066,10 @@ $(document).ready(function() { window.location.href = "checkGithub"; }); + $("#modal_link_restart").click(function() { + window.location.href = "restart"; + }); + if ($("#api_enabled").is(":checked")) { $("#apioptions").show(); } else {