Push dev work to master #2

Merged
sixteenmillimeter merged 416 commits from dev into master 2018-07-19 15:29:02 +00:00
2 changed files with 12 additions and 6 deletions
Showing only changes of commit 10e7b13707 - Show all commits

View File

@ -623,8 +623,8 @@ mobile.EV = function (fstop, shutter) {
};
mobile.reset = function () {
const reset = confirm(`Reset INTVAL3 to default settings and clear counter?`);
if (!reset) return false;
const proceed = confirm(`Reset INTVAL3 to default settings and clear counter?`);
if (!proceed) return false;
let opts = {
type : 'reset'
};
@ -644,8 +644,8 @@ mobile.resetSuccess = function () {
};
mobile.update = function () {
const update = confirm(`Check for updates? You will be disconnected from the INTVAL3 during this process.`);
if (!update) return false;
const proceed = confirm(`Check for updates? You will be disconnected from the INTVAL3 during this process.`);
if (!proceed) return false;
let opts = {
type : 'update'
};
@ -662,8 +662,8 @@ mobile.updateSuccess = function () {
};
mobile.restart = function () {
const restart = confirm(`Restart the INTVAL3? You will be disconnected from it during this process.`);
if (!restart) return false;
const proceed = confirm(`Restart the INTVAL3? You will be disconnected from it during this process.`);
if (!proceed) return false;
let opts = {
type : 'restart'
};

View File

@ -166,6 +166,8 @@ web.reset = function () {
headers : web._header,
body : JSON.stringify({})
}
const proceed = confirm(`Reset INTVAL3 to default settings and clear counter?`);
if (!proceed) return false
fetch('/reset', opts)
.then(web.useJson)
.then(setState)
@ -180,6 +182,8 @@ web.restart = function () {
headers : web._header,
body : JSON.stringify({})
}
const proceed = confirm(`Restart the INTVAL3? You will be disconnected from it during this process.`);
if (!proceed) return false;
fetch('/restart', opts)
.then(web.useJson)
.then(web.restartSuccess)
@ -197,6 +201,8 @@ web.update = function () {
headers : web._header,
body : JSON.stringify({})
}
const proceed = confirm(`Check for updates? You will be disconnected from the INTVAL3 during this process.`);
if (!proceed) return false;
fetch('/update', opts)
.then(web.useJson)
.then(web.updateSuccess)