src/cm/templates/site/text_notifications.html
changeset 12 f69ff46d3240
parent 3 37e2aafd30d3
equal deleted inserted replaced
11:7b8167c4aa6f 12:f69ff46d3240
    53 {% endif %}
    53 {% endif %}
    54 
    54 
    55 {% endif %}
    55 {% endif %}
    56 
    56 
    57 <h2>{% blocktrans %}Email notifications{% endblocktrans %}</h2>
    57 <h2>{% blocktrans %}Email notifications{% endblocktrans %}</h2>
    58 
    58     <div>
    59 	<input type="checkbox" id="all_check" class="check" name="all-check" {% if all_check %}checked="checked"{% endif %}/>&nbsp;
    59     {% if workspace_notify_check %}
    60 	{% blocktrans %}Subscribe to all text notifications{% endblocktrans %}
    60         {% blocktrans %}You will receive text notifications because you subscribed to notifications at the workspace level{% endblocktrans %}
    61 	
    61     {% else %}
       
    62 		<input type="checkbox" id="text_notify_check" class="check" {% if text_notify_check %}checked="checked"{% endif %}/>&nbsp;
       
    63 	    {% blocktrans %}Subscribe to all text notifications{% endblocktrans %}
       
    64     {% endif %}
       
    65 	</div>
    62 	<script type="text/javascript">                
    66 	<script type="text/javascript">                
    63 	<!--
    67 	<!--
    64 	$(function() {
    68     $(function() {
    65 	    $(".check").click(function(){
    69         $(".check").click(function(){
    66 	    	var all_check = $("#all_check").attr('checked');
    70             checked = $(this).attr('checked');
    67             $.post('.',{'all_check':all_check},function(data){/* window.location = window.location;*/});
    71             id = $(this).attr('id') ;
    68     });
    72             post_data = {'notif_id': id} ;
    69 }) ;
    73             post_data[id] = checked ; 
       
    74             $.post('.', post_data, function(data){});
       
    75         });
       
    76         
       
    77     }) ;
    70 --> 
    78 --> 
    71 </script>
    79 </script>
    72 
    80 
    73 <h2>{% blocktrans %}Embed text{% endblocktrans %}</h2>
    81 <h2>{% blocktrans %}Embed text{% endblocktrans %}</h2>
    74 {% blocktrans %}Copy this code into your site to display text with comments. Users will also be able to add comments from your site depending an anonymous users' roles.{% endblocktrans %}
    82 {% blocktrans %}Copy this code into your site to display text with comments. Users will also be able to add comments from your site depending an anonymous users' roles.{% endblocktrans %}