From e81a30752b244394b03cbcaa0df254c93b379782 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 17 Jan 2011 13:26:24 -0500
Subject: [PATCH] - Fix impossible to subscribe to protected folders (#1487656)

---
 program/js/app.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 280322c..b21435e 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4309,6 +4309,14 @@
     }
   };
 
+  // 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');

--
Gitblit v1.9.1