Commit 49d43410 authored by Michael Ochmann's avatar Michael Ochmann
Browse files

now reloading app on settings clearing

parent 9310602a
......@@ -18,8 +18,11 @@ class SettingsViewController extends UIViewController {
Settings.set("distanceInterval", element.value());
});
$("#deleteAll").click(element => {
if (confirm("Do you really want to clear all your data?"))
Settings.clear();
if (!confirm("Do you really want to clear all your data?"))
return;
Settings.clear();
window.location.reload(true);
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment