alecpl
2012-02-20 a3ed96344e15e7c1c238015911f9dd2d398f7da1
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  
16  $Id$
17 */
c5042d 18
T 19 function toggleblock(id, link)
20 {
21   var block = document.getElementById(id);
22   
23   return false;
24 }
25
26
27 function addhostfield()
28 {
29   var container = document.getElementById('defaulthostlist');
30   var row = document.createElement('div');
31   var input = document.createElement('input');
32   var link = document.createElement('a');
33   
34   input.name = '_default_host[]';
35   input.size = '30';
36   link.href = '#';
37   link.onclick = function() { removehostfield(this.parentNode); return false };
38   link.className = 'removelink';
39   link.innerHTML = 'remove';
40   
41   row.appendChild(input);
42   row.appendChild(link);
43   container.appendChild(row);
44 }
45
46
47 function removehostfield(row)
48 {
49   var container = document.getElementById('defaulthostlist');
50   container.removeChild(row);
51 }
52
53