summaryrefslogtreecommitdiffstats
path: root/public_html
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-10-03 20:11:41 +0200
committerAleksander Machniak <alec@alec.pl>2012-10-03 20:11:41 +0200
commit09e33781fda8be2c314d16a2b7d7ea4a837a1b65 (patch)
treeb17f1edc90bd72066186d86e3596f1baa0438136 /public_html
parent03e69d92840ee74ea0fcf20a77138e18ddb8230d (diff)
downloadwebadmin-09e33781fda8be2c314d16a2b7d7ea4a837a1b65.tar.gz
Added lost domain_list and domain_delete methods
Diffstat (limited to 'public_html')
-rw-r--r--public_html/js/kolab_admin.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index 57bc970..928ef30 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -1250,6 +1250,17 @@ function kolab_admin()
this.http_post('domain.info', {id: id});
};
+ this.domain_list = function(props)
+ {
+ this.list_handler('domain', props);
+ };
+
+ this.domain_delete = function(domainid)
+ {
+ this.set_busy(true, 'deleting');
+ this.api_post('domain.delete', {domain: domainid}, 'domain_delete_response');
+ };
+
this.domain_save = function(reload, section)
{
var data = this.serialize_form('#'+this.env.form_id),
@@ -1272,6 +1283,11 @@ function kolab_admin()
this.api_post('domain.' + action, data, 'domain_' + action + '_response');
};
+ this.domain_delete_response = function(response)
+ {
+ this.response_handler(response, 'domain.delete', 'domain.list');
+ };
+
this.domain_add_response = function(response)
{
this.response_handler(response, 'domain.add', 'domain.list');