summaryrefslogtreecommitdiff
path: root/roundcubemail/installer/client.js
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-25 23:03:54 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-25 23:03:54 +0000
commitb7a00e1ed4d934703d64fd5b8db0a978f8f7f0c5 (patch)
tree0a74f44538e7b53b7b1225f6a9139d03ffe3766a /roundcubemail/installer/client.js
parent62baf7e729439381adcca2a24ce8d43d3f9aec33 (diff)
More installer stuff
git-svn-id: https://svn.roundcube.net/trunk@1139 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/installer/client.js')
-rw-r--r--roundcubemail/installer/client.js36
1 files changed, 36 insertions, 0 deletions
diff --git a/roundcubemail/installer/client.js b/roundcubemail/installer/client.js
new file mode 100644
index 000000000..3121b2693
--- /dev/null
+++ b/roundcubemail/installer/client.js
@@ -0,0 +1,36 @@
+
+function toggleblock(id, link)
+{
+ var block = document.getElementById(id);
+
+ return false;
+}
+
+
+function addhostfield()
+{
+ var container = document.getElementById('defaulthostlist');
+ var row = document.createElement('div');
+ var input = document.createElement('input');
+ var link = document.createElement('a');
+
+ input.name = '_default_host[]';
+ input.size = '30';
+ link.href = '#';
+ link.onclick = function() { removehostfield(this.parentNode); return false };
+ link.className = 'removelink';
+ link.innerHTML = 'remove';
+
+ row.appendChild(input);
+ row.appendChild(link);
+ container.appendChild(row);
+}
+
+
+function removehostfield(row)
+{
+ var container = document.getElementById('defaulthostlist');
+ container.removeChild(row);
+}
+
+