edit_server.js 892 B

123456789101112131415161718192021222324252627282930313233
  1. $(document).ready(function(){
  2. $('select[name=v_filemanager]').change(function(){
  3. if($(this).val() == 'yes'){
  4. $('.filemanager.description').show();
  5. } else {
  6. $('.filemanager.description').hide();
  7. }
  8. });
  9. $('select[name=v_sftp]').change(function(){
  10. if($(this).val() == 'yes'){
  11. $('.sftp.description').show();
  12. } else {
  13. $('.sftp.description').hide();
  14. }
  15. });
  16. $('select[name=v_softaculous]').change(function(){
  17. if($(this).val() == 'yes'){
  18. $('.softaculous.description').show();
  19. } else {
  20. $('.softaculous.description').hide();
  21. }
  22. });
  23. $('input[name=v_mail_relay]').change(function(){
  24. if($(this).is(':checked')){
  25. $('.mail-relay').show();
  26. } else {
  27. $('.mail-relay').hide();
  28. }
  29. });
  30. });