comparison installer/client.js @ 0:4681f974d28b

vanilla 1.3.3 distro, I hope
author Charlie Root
date Thu, 04 Jan 2018 15:52:31 -0500
parents
children bf99236cc5cd
comparison
equal deleted inserted replaced
-1:000000000000 0:4681f974d28b
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
17 function toggleblock(id, link)
18 {
19 var block = document.getElementById(id);
20
21 return false;
22 }
23
24
25 function addhostfield()
26 {
27 var container = document.getElementById('defaulthostlist');
28 var row = document.createElement('div');
29 var input = document.createElement('input');
30 var link = document.createElement('a');
31
32 input.name = '_default_host[]';
33 input.size = '30';
34 link.href = '#';
35 link.onclick = function() { removehostfield(this.parentNode); return false };
36 link.className = 'removelink';
37 link.innerHTML = 'remove';
38
39 row.appendChild(input);
40 row.appendChild(link);
41 container.appendChild(row);
42 }
43
44
45 function removehostfield(row)
46 {
47 var container = document.getElementById('defaulthostlist');
48 container.removeChild(row);
49 }
50
51