mirror of
https://github.com/unraid/webgui.git
synced 2026-04-22 18:19:14 -05:00
Date and Time enhancements
- Add Time State information
This commit is contained in:
@@ -73,6 +73,9 @@ _(Time zone)_:
|
||||
|
||||
:timezone_help:
|
||||
|
||||
_(Time state)_:
|
||||
: <span id="timeState"><i class="fa fa-spin fa-refresh"></i></span>
|
||||
|
||||
_(Time sync)_:
|
||||
: <select name="USE_NTP" onchange="updatePage(this.form,'slow')">
|
||||
<?=mk_option($var['USE_NTP'], "yes", _('NTP'))?>
|
||||
@@ -308,5 +311,6 @@ $(function() {
|
||||
if (form.USE_NTP.selectedIndex==1) $('#noports').show();
|
||||
<?endif;?>
|
||||
updatePage(form);
|
||||
setInterval(function(){$.post('/webGui/include/DashboardApps.php',{ntp:'ntp'},function(ntp){$('#timeState').html('<i class="fa fa-spin fa-refresh"></i> '+ntp);});},2000);
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
div.extra,span.ipv4,span.ipv6,span.mac,span#noports{display:none}
|
||||
select,input[type=text]{margin-right:40px}
|
||||
select[name=timeZone]{max-width:166px}
|
||||
|
||||
Reference in New Issue
Block a user