]> code.octet-stream.net Git - broadcaster/commitdiff
Make "previous item" default for relative playlist delay
authorThomas Karpiniec <tom.karpiniec@outlook.com>
Sun, 20 Oct 2024 09:11:24 +0000 (20:11 +1100)
committerThomas Karpiniec <tom.karpiniec@outlook.com>
Sun, 20 Oct 2024 09:11:24 +0000 (20:11 +1100)
templates/playlist.html

index 88f17b74d815b320e893d8b9c816acc05e555f9c..1e550ca2263b23267c7cf4587101b0bf50e3ed2e 100644 (file)
@@ -49,8 +49,8 @@
         <input type="text" name="delaySeconds" value="{{.DelaySeconds}}">
         seconds from
         <select name="isRelative">
-          <option value="0">start of transmission</option>
-          <option value="1" {{if .IsRelative}} selected="selected" {{end}}>previous item</option>
+          <option value="1">previous item</option>
+          <option value="0" {{if not .IsRelative}} selected="selected" {{end}}>start of transmission</option>
         </select>
         then play
         <select name="filename">{{$f := .Filename}}
@@ -83,8 +83,8 @@
         <input type="text" name="delaySeconds" value="0">
         seconds from
         <select name="isRelative">
-          <option value="0">start of transmission</option>
           <option value="1">previous item</option>
+          <option value="0">start of transmission</option>
         </select>
         then play
         <select name="filename">