2024.5.14

This commit is contained in:
Ibnu Maksum
2024-05-14 13:40:30 +07:00
parent fa45d5f4b5
commit ae3db05649
4 changed files with 22 additions and 2 deletions

View File

@ -385,6 +385,21 @@
var latestVersion = data.version;
if (localVersion !== latestVersion) {
$('#version').html('Latest Version: ' + latestVersion);
Swal.fire({
icon: 'info',
title: "New Version Available\nVersion: "+latestVersion,
toast: true,
position: 'bottom-right',
showConfirmButton: true,
showCloseButton: true,
timer: 30000,
confirmButtonText: '<a href="{$_url}community#latestVersion" style="color: white;">Update Now</a>',
timerProgressBar: true,
didOpen: (toast) => {
toast.addEventListener('mouseenter', Swal.stopTimer)
toast.addEventListener('mouseleave', Swal.resumeTimer)
}
});
}
});
});

View File

@ -419,4 +419,4 @@
}
});
</script>
{/if}
{/if}