You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

client.js 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. +-----------------------------------------------------------------------+
  3. | Roundcube installer cleint function |
  4. | |
  5. | This file is part of the Roundcube web development suite |
  6. | Copyright (C) 2009-2012, The Roundcube Dev Team |
  7. | |
  8. | Licensed under the GNU General Public License version 3 or |
  9. | any later version with exceptions for skins & plugins. |
  10. | See the README file for a full license statement. |
  11. | |
  12. +-----------------------------------------------------------------------+
  13. | Author: Thomas Bruederli <roundcube@gmail.com> |
  14. +-----------------------------------------------------------------------+
  15. */
  16. function toggleblock(id, link)
  17. {
  18. var block = document.getElementById(id);
  19. return false;
  20. }
  21. function addhostfield()
  22. {
  23. var container = document.getElementById('defaulthostlist');
  24. var row = document.createElement('div');
  25. var input = document.createElement('input');
  26. var link = document.createElement('a');
  27. input.name = '_default_host[]';
  28. input.size = '30';
  29. link.href = '#';
  30. link.onclick = function() { removehostfield(this.parentNode); return false };
  31. link.className = 'removelink';
  32. link.innerHTML = 'remove';
  33. row.appendChild(input);
  34. row.appendChild(link);
  35. container.appendChild(row);
  36. }
  37. function removehostfield(row)
  38. {
  39. var container = document.getElementById('defaulthostlist');
  40. container.removeChild(row);
  41. }