Rev | Line | |
---|
[21439] | 1 | {if !$SUBSCRIBED} |
---|
[21340] | 2 | |
---|
[15641] | 3 | <p> |
---|
| 4 | {'Notify me of followup comments'|@translate} :<br> |
---|
[15677] | 5 | <label><input type="radio" name="stc_mode" value="-1" {if !$STC_MODE}checked="checked"{/if}> {'No'|@translate}</label> |
---|
[15641] | 6 | {if $STC_ON_PICTURE} |
---|
| 7 | {if $STC_ALLOW_GLOBAL} |
---|
[21340] | 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> |
---|
[15641] | 11 | {else} |
---|
[21340] | 12 | <label><input type="radio" name="stc_mode" value="image" {if $STC_MODE=="image"}checked="checked"{/if}> {'Yes'|@translate}</label> |
---|
[15641] | 13 | {/if} |
---|
| 14 | {elseif $STC_ON_ALBUM} |
---|
| 15 | {if $STC_ALLOW_GLOBAL} |
---|
[21340] | 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> |
---|
[15641] | 18 | {else} |
---|
[21340] | 19 | <label><input type="radio" name="stc_mode" value="album" {if $STC_MODE=="album"}checked="checked"{/if}> {'Yes'|@translate}</label> |
---|
[15641] | 20 | {/if} |
---|
| 21 | {/if} |
---|
| 22 | </p> |
---|
| 23 | |
---|
| 24 | {if $STC_ASK_MAIL} |
---|
[21340] | 25 | {footer_script require="jquery"}{literal} |
---|
| 26 | var $stc_email_input = $("#addComment input[name='email']"); |
---|
| 27 | var stc_bordercolor = $stc_email_input.css('border-color'); |
---|
| 28 | |
---|
| 29 | $("#addComment input[name='stc_mode']").change(function() { |
---|
| 30 | if ($(this).val() != "-1") { |
---|
| 31 | if ($stc_email_input.val()=="") { |
---|
| 32 | $stc_email_input.css("border-color", "red"); |
---|
| 33 | } |
---|
| 34 | } |
---|
| 35 | else { |
---|
| 36 | $stc_email_input.css("border-color", stc_bordercolor); |
---|
| 37 | } |
---|
[15641] | 38 | }); |
---|
[21340] | 39 | $stc_email_input.change(function() { |
---|
| 40 | $(this).css('border-color', stc_bordercolor); |
---|
| 41 | }); |
---|
| 42 | {/literal}{/footer_script} |
---|
[15641] | 43 | {/if} |
---|
[21340] | 44 | |
---|
[15641] | 45 | {/if} |
---|
Note: See
TracBrowser
for help on using the repository browser.