recorder: Remove confirmation before delete
The confirmation wasn’t showing on mobile so there was no way to delete a track. Switched back to the original delete immediately behavior.master
parent
1ed5594c0f
commit
cf7abc53a9
|
|
@ -829,13 +829,11 @@ ${trackData.Latitude ? `
|
|||
|
||||
switch(task) {
|
||||
case "delete":
|
||||
if (confirm(`Are you sure you want to delete Track ${trackid}?`)) {
|
||||
Util.showModal(`Deleting ${filename}...`);
|
||||
Util.eraseStorageFile(filename, () => {
|
||||
Util.hideModal();
|
||||
getTrackList();
|
||||
});
|
||||
}
|
||||
Util.showModal(`Deleting ${filename}...`);
|
||||
Util.eraseStorageFile(filename, () => {
|
||||
Util.hideModal();
|
||||
getTrackList();
|
||||
});
|
||||
break;
|
||||
case "downloadkml":
|
||||
downloadTrack(filename, track => saveKML(track, `Bangle.js Track ${trackid}`));
|
||||
|
|
@ -906,4 +904,4 @@ function onInit() {
|
|||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in New Issue