Ignore:
Timestamp:
Dec 23, 2013, 9:17:28 PM (10 years ago)
Author:
mistic100
Message:

update for 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Subscribe_to_comments/template/form_comment.tpl

    r21439 r26139  
    22
    33<p>
    4   {'Notify me of followup comments'|@translate} :<br>
    5   <label><input type="radio" name="stc_mode" value="-1" {if !$STC_MODE}checked="checked"{/if}> {'No'|@translate}</label>
     4  {'Notify me of followup comments'|translate} :<br>
     5  <label><input type="radio" name="stc_mode" value="-1" {if !$STC_MODE}checked{/if}> {'No'|translate}</label>
    66  {if $STC_ON_PICTURE}
    7     {if $STC_ALLOW_GLOBAL} 
    8       <label><input type="radio" name="stc_mode" value="image" {if $STC_MODE=="image"}checked="checked"{/if}> {'this picture'|@translate}</label>
    9       {if $STC_ALLOW_ALBUM_IMAGES}<label><input type="radio" name="stc_mode" value="album-images" {if $STC_MODE=="album-images"}checked="checked"{/if}> {'all pictures of this album'|@translate}</label>{/if}
    10       <label><input type="radio" name="stc_mode" value="all-images" {if $STC_MODE=="all-images"}checked="checked"{/if}> {'all pictures of the gallery'|@translate}</label>
     7    {if $STC_ALLOW_GLOBAL}
     8      <label><input type="radio" name="stc_mode" value="image" {if $STC_MODE=="image"}checked{/if}> {'this picture'|translate}</label>
     9      {if $STC_ALLOW_ALBUM_IMAGES}<label><input type="radio" name="stc_mode" value="album-images" {if $STC_MODE=="album-images"}checked{/if}> {'all pictures of this album'|translate}</label>{/if}
     10      <label><input type="radio" name="stc_mode" value="all-images" {if $STC_MODE=="all-images"}checked{/if}> {'all pictures of the gallery'|translate}</label>
    1111    {else}
    12       <label><input type="radio" name="stc_mode" value="image" {if $STC_MODE=="image"}checked="checked"{/if}> {'Yes'|@translate}</label>
     12      <label><input type="radio" name="stc_mode" value="image" {if $STC_MODE=="image"}checked{/if}> {'Yes'|translate}</label>
    1313    {/if}
    1414  {elseif $STC_ON_ALBUM}
    1515    {if $STC_ALLOW_GLOBAL}
    16       <label><input type="radio" name="stc_mode" value="album" {if $STC_MODE=="album"}checked="checked"{/if}> {'this album'|@translate}</label>
    17       <label><input type="radio" name="stc_mode" value="all-albums" {if $STC_MODE=="all-albums"}checked="checked"{/if}> {'all albums of the gallery'|@translate}</label>
     16      <label><input type="radio" name="stc_mode" value="album" {if $STC_MODE=="album"}checked{/if}> {'this album'|translate}</label>
     17      <label><input type="radio" name="stc_mode" value="all-albums" {if $STC_MODE=="all-albums"}checked{/if}> {'all albums of the gallery'|translate}</label>
    1818    {else}
    19       <label><input type="radio" name="stc_mode" value="album" {if $STC_MODE=="album"}checked="checked"{/if}> {'Yes'|@translate}</label>
     19      <label><input type="radio" name="stc_mode" value="album" {if $STC_MODE=="album"}checked{/if}> {'Yes'|translate}</label>
    2020    {/if}
    2121  {/if}
     
    2323
    2424{if $STC_ASK_MAIL}
    25 {footer_script require="jquery"}{literal}
     25{footer_script require='jquery'}
     26(function($){
    2627        var $stc_email_input = $("#addComment input[name='email']");
    2728  var stc_bordercolor = $stc_email_input.css('border-color');
    28  
     29
    2930  $("#addComment input[name='stc_mode']").change(function() {
    3031    if ($(this).val() != "-1") {
     
    4041    $(this).css('border-color', stc_bordercolor);
    4142  });
    42 {/literal}{/footer_script}
     43}(jQuery));
     44{/footer_script}
    4345{/if}
    4446
Note: See TracChangeset for help on using the changeset viewer.