* Sun May 18 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-10.sme
- add pollinterval setting [SME: 13006] - update config for Nut 2.8.2 [SME: 12657]
This commit is contained in:
		| @@ -1,13 +1,16 @@ | ||||
| $(document).ready(function() { | ||||
|     function toggleUPSClasses() { | ||||
|         var selectedOption = $('#Nutmode_select').val(); | ||||
|         var upsModelValue = $('#UPS_Model_select').val().toLowerCase(); // Get the current value from UPS_Model | ||||
|         $('.masterups').toggle(selectedOption === 'netserver' || selectedOption === 'standalone'); // Show/Hide masterups based on Net Server or Standalone | ||||
|         $('.secondaryups').toggle(selectedOption === 'netserver' ); // Show/Hide Secondary logins for net server | ||||
|         $('.slaveups').toggle(selectedOption === 'netclient'); // Show/Hide slaveups based on Net Client | ||||
|          | ||||
|         $('.generics').toggle(selectedOption !== 'netclient' && upsModelValue === 'genericups' ); | ||||
|  | ||||
|         // Enable/Disable inputs based on the selected option | ||||
|         $('.masterups input').prop('disabled', !(selectedOption === 'netserver' || selectedOption === 'standalone'));  | ||||
|         $('.slaveups input').prop('disabled', selectedOption !== 'netclient');  | ||||
|         $('.generics input').prop('disabled', selectedOption === 'netclient'); | ||||
|     } | ||||
|  | ||||
|     function toggleGenerics() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user