Skip to content

Commit

Permalink
fixed bug with spoiler and embed toggle (#1585)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashish Jhanwar <[email protected]>
  • Loading branch information
ashishjh-bst and ashishjh-bst authored Nov 5, 2023
1 parent 824dfac commit e6ba240
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reddit/assets/reddit.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ <h3>New feed</h3>
</div>{{end}}
</div>

{{checkbox "spoilers_enabled" (printf "format-new-slow-%t" .Slow) `Spoilers enabled<small class="ml-2">(On Reddit posts marked as spoilers)</small>` true}}
{{checkbox "use_embeds" (printf "format-new-slow-%t" .Slow) `Use embeds<small class="ml-2">(Videos won't be attached, but just linked)</small>` true}}
{{checkbox "spoilers_enabled" (printf "spoiler-toggle-new-slow-%t" .Slow) `Spoilers enabled<small class="ml-2">(On Reddit posts marked as spoilers)</small>` true}}
{{checkbox "use_embeds" (printf "embed-new-slow-%t" .Slow) `Use embeds<small class="ml-2">(Videos won't be attached, but just linked)</small>` true}}

<button type="submit" class="btn btn-success">Add</button>
</form>
Expand Down Expand Up @@ -132,11 +132,11 @@ <h3>Current reddit feeds</h3>
<div class="form-row">
<div class="col d-flex flex-column">
<Span class="mb-2">Enable Spoilers</span>
{{checkbox "spoilers_enabled" (joinStr "" "format-" .ID) `` .SpoilersEnabled}}
{{checkbox "spoilers_enabled" (joinStr "" "spoiler-toggle-" .ID) `` .SpoilersEnabled}}
</div>
<div class="col d-flex flex-column">
<Span class="mb-2">Use embed</span>
{{checkbox "use_embeds" (joinStr "" "format-" .ID) `` .UseEmbeds}}
{{checkbox "use_embeds" (joinStr "" "use-embed-" .ID) `` .UseEmbeds}}
</div>
<div class="col d-flex flex-column">
<Span class="mb-2">Enabled</span>
Expand Down

0 comments on commit e6ba240

Please sign in to comment.