Skip to content

Commit

Permalink
change reboot timeout to 2 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevanis committed Sep 29, 2020
1 parent c993472 commit 4af8d9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function populateNetworksList(selectedNetwork) {

function onSaveButtonClicked(event) {
event.preventDefault();

var data = {
local_ssid: $('#networks-list-select').children("option:selected").val(),
local_pass: $('#local_pass').val(),
Expand Down Expand Up @@ -121,7 +121,7 @@ function onSaveButtonClicked(event) {
$('#alert-text').addClass('alert-success');
$('#alert-text').text('Done');

setTimeout(function(){ reboot(); }, 10000);
setTimeout(function(){ reboot(); }, 2000);
},
error: function (jqXHR, textStatus, errorThrown) {
console.log(jqXHR);
Expand Down Expand Up @@ -150,4 +150,4 @@ function reboot() {
console.log(errorThrown);
}
});
}
}

0 comments on commit 4af8d9a

Please sign in to comment.