Changeset 7479
- Timestamp:
- Apr 16, 2018, 2:15:32 PM (5 years ago)
- Location:
- trunk/www/filemanager/fileservers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/filemanager/fileservers/edit_fileserver.jsp
r7472 r7479 88 88 extensions="<%=invoker%>"> 89 89 <t:tab id="info" title="File server" helpid="fileserver.edit"> 90 <table class="fullform input100 ">90 <table class="fullform input100 larger"> 91 91 <tr> 92 92 <th>Name</th> … … 180 180 </table> 181 181 </t:tab> 182 <t:tab id=" serverCertificate" title="HTTPS certificates"182 <t:tab id="httpsOptions" title="HTTPS options" 183 183 helpid="fileserver.edit"> 184 184 185 <table class="fullform input100 ">185 <table class="fullform input100 larger"> 186 186 <tr class="big"> 187 187 <th>Server certificate</th> … … 228 228 <t:tab id="sshOptions" title="SSH options" 229 229 helpid="fileserver.edit"> 230 <table class="fullform input100 ">230 <table class="fullform input100 larger"> 231 231 <tr> 232 232 <th>SSH fingerprint</th> -
trunk/www/filemanager/fileservers/fileservers.js
r7472 r7479 42 42 // Tab validation 43 43 TabControl.addTabValidator('settings.info', fileServers.validateFileServer); 44 TabControl.addTabValidator('settings. serverCertificate', fileServers.validateCertificates);44 TabControl.addTabValidator('settings.httpsOptions', fileServers.validateHttpsOptions); 45 45 TabControl.addTabValidator('settings.sshOptions', fileServers.validateSshOptions); 46 46 … … 52 52 Events.addEventHandler('removeServerCertificate', 'click', fileServers.removeServerCertificateOnClick); 53 53 Events.addEventHandler('removeClientCertificate', 'click', fileServers.removeClientCertificateOnClick); 54 Events.addEventHandler('removeSshPrivateKey', 'click', fileServers.removeSshPrivateKeyOnClick); 54 55 55 56 } … … 112 113 } 113 114 114 fileServers.validate Certificates = function()115 fileServers.validateHttpsOptions = function() 115 116 { 116 117 return true; … … 184 185 } 185 186 187 fileServers.removeSshPrivateKeyOnClick = function() 188 { 189 var frm = document.forms['server']; 190 if (frm.remove_ssh_private_key.checked) 191 { 192 frm.ssh_private_key.value = ''; 193 frm.ssh_private_key.disabled = true; 194 frm.ssh_private_key_password.disabled = true; 195 frm.ssh_private_key_format.disabled = true; 196 } 197 else 198 { 199 frm.ssh_private_key.disabled = false; 200 frm.ssh_private_key_password.disabled = false; 201 frm.ssh_private_key_format.disabled = false; 202 } 203 } 186 204 187 205 return fileServers;
Note: See TracChangeset
for help on using the changeset viewer.