src/cm/templates/site/text_notifications.html
changeset 12 f69ff46d3240
parent 3 37e2aafd30d3
--- a/src/cm/templates/site/text_notifications.html	Thu Nov 26 12:03:53 2009 +0100
+++ b/src/cm/templates/site/text_notifications.html	Mon Nov 30 13:46:17 2009 +0100
@@ -55,18 +55,26 @@
 {% endif %}
 
 <h2>{% blocktrans %}Email notifications{% endblocktrans %}</h2>
-
-	<input type="checkbox" id="all_check" class="check" name="all-check" {% if all_check %}checked="checked"{% endif %}/>&nbsp;
-	{% blocktrans %}Subscribe to all text notifications{% endblocktrans %}
-	
+    <div>
+    {% if workspace_notify_check %}
+        {% blocktrans %}You will receive text notifications because you subscribed to notifications at the workspace level{% endblocktrans %}
+    {% else %}
+		<input type="checkbox" id="text_notify_check" class="check" {% if text_notify_check %}checked="checked"{% endif %}/>&nbsp;
+	    {% blocktrans %}Subscribe to all text notifications{% endblocktrans %}
+    {% endif %}
+	</div>
 	<script type="text/javascript">                
 	<!--
-	$(function() {
-	    $(".check").click(function(){
-	    	var all_check = $("#all_check").attr('checked');
-            $.post('.',{'all_check':all_check},function(data){/* window.location = window.location;*/});
-    });
-}) ;
+    $(function() {
+        $(".check").click(function(){
+            checked = $(this).attr('checked');
+            id = $(this).attr('id') ;
+            post_data = {'notif_id': id} ;
+            post_data[id] = checked ; 
+            $.post('.', post_data, function(data){});
+        });
+        
+    }) ;
 --> 
 </script>