Check for updates without refreshing the page

This commit is contained in:
JonnyWong16 2018-02-16 10:24:55 -08:00
parent 16f270691d
commit cab8b1c041
5 changed files with 112 additions and 20 deletions

View file

@ -1648,11 +1648,11 @@ $(document).ready(function() {
});
$('#menu_link_update_check').click(function() {
// Allow the update bar to show again if previously dismissed.
setCookie('updateDismiss', 'true', 0);
$(this).html('<i class="fa fa-spin fa-refresh"></i> Checking');
$(this).prop('disabled', true);
window.location.href = 'checkGithub';
$(this).html('<i class="fa fa-spin fa-refresh"></i> Checking').prop('disabled', true);
checkUpdate(function () {
$('#menu_link_update_check').html('<i class="fa fa-arrow-circle-up"></i> Check for Updates')
.prop('disabled', false);
});
});
$('#modal_link_restart').click(function() {