From 204c9d503cc159d948e9cb24e019a90e3f7e8354 Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 17 Jan 2011 18:26:24 +0000 Subject: - Fix impossible to subscribe to protected folders (#1487656) git-svn-id: https://svn.roundcube.net/trunk@4422 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'roundcubemail/program/js') diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 280322cf6..b21435ef1 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -4309,6 +4309,14 @@ function rcube_webmail() } }; + // disables subscription checkbox (for protected folder) + this.disable_subscription = function(folder) + { + var id = this.get_folder_row_id(folder); + if (id) + $('input[name="_subscribed[]"]', $('#'+id)).attr('disabled', true); + }; + this.folder_size = function(folder) { var lock = this.set_busy(true, 'loading'); -- cgit v1.2.3