Skip to content

Commit

Permalink
Toggle function
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewMohawk committed Jul 25, 2021
1 parent f58e846 commit e3bbe53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webserver/static/js/aurora-generic.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ currentAjaxRequest = null; // Stores our current ajax request so we can cancel i

function togglePower()
{
make_AJAX_Call("/toggleEnable",{$('#powerToggle').toggleClass("color-theme")})
make_AJAX_Call("/toggleEnable",[],function() {
$('#powerToggle').toggleClass("color-theme")
})
}

function make_AJAX_Call(url, data_dict, callback_function = false) {
Expand Down

0 comments on commit e3bbe53

Please sign in to comment.