From 95688062196067f3d260befab600745dd341dec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sun, 10 May 2015 00:54:44 +0200 Subject: [PATCH] Fix: Don't reload page when disabling access control in first run dialog Cache clearing doesn't work reliably with location.reload(true), leading to cache induced infinite loop when disabling access control (since generated template still assumes first run dialog to be active). Disabling for now, need to find a better way to reload the page while clearing the browser's and server's cache (same issue exists for plugins needing a client side triggered reload). Fixes #886 --- src/octoprint/static/js/app/viewmodels/firstrun.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/static/js/app/viewmodels/firstrun.js b/src/octoprint/static/js/app/viewmodels/firstrun.js index 6b424407..9e5552dd 100644 --- a/src/octoprint/static/js/app/viewmodels/firstrun.js +++ b/src/octoprint/static/js/app/viewmodels/firstrun.js @@ -46,7 +46,7 @@ $(function() { }; self._sendData(data, function() { // if the user indeed disables access control, we'll need to reload the page for this to take effect - location.reload(); + //location.reload(true); // TODO: clear cache doesn't work properly, needs a better way, same issue with reloading plugins }); }); $("#confirmation_dialog").modal("show");