Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Michael Ochmann
trakr.
Commits
49d43410
Commit
49d43410
authored
Jul 15, 2018
by
Michael Ochmann
Browse files
now reloading app on settings clearing
parent
9310602a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/javascript/controllers/SettingsViewController.js
View file @
49d43410
...
...
@@ -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
);
});
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment