* Sun Jun 15 2025 Brian Read <brianr@koozali.org> 11.0.0-92.sme
- rework datetime panel [SME: 13020] - Fix errors in error messages for local networks panel [SME: 13044] - Add in Config Db open in Proxy.pm needed after UTF8 change [SME: 13046]
This commit is contained in:
18
root/usr/share/smanager/themes/default/public/js/datetime.js
Normal file
18
root/usr/share/smanager/themes/default/public/js/datetime.js
Normal file
@@ -0,0 +1,18 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var select = document.getElementById('time_mode_select');
|
||||
var ntpSection = document.getElementById('ntp_section');
|
||||
var manualSection = document.getElementById('manual_section');
|
||||
|
||||
function toggleSections() {
|
||||
if (select.value === 'dat_manually_set') {
|
||||
ntpSection.style.display = 'none';
|
||||
manualSection.style.display = 'block';
|
||||
} else {
|
||||
ntpSection.style.display = 'block';
|
||||
manualSection.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
select.addEventListener('change', toggleSections);
|
||||
toggleSections(); // Set initial state
|
||||
});
|
Reference in New Issue
Block a user