Aleksander Machniak
2016-05-22 87cf0a3fb158b5ffaa54a79997d7b01492d39b74
commit | author | age
7fe381 1 /*
T 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 */
c5042d 16
T 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