mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Check for updates without refreshing the page
This commit is contained in:
parent
16f270691d
commit
cab8b1c041
5 changed files with 112 additions and 20 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue