]> git.plutz.net Git - serve0/commitdiff
correct anchors in thumb list
authorpaul <paul@plutz.net>
Fri, 19 Aug 2016 10:37:00 +0000 (10:37 +0000)
committerpaul <paul@plutz.net>
Fri, 19 Aug 2016 10:37:00 +0000 (10:37 +0000)
svn path=/trunk/; revision=143

pages/list.sh

index a9eeb331720e45d97c1ce2e8d183287fc12c6c31..70859d51c1207b266d598b6a9a97761b7ac2581a 100755 (executable)
@@ -73,11 +73,12 @@ _printVideo(){
     thumb="$(urlsafe "thumbs/$info.jpg")"
     linkinfo="$(urlsafe "$info")"
     htmlinfo="$(htmlsafe "$info")"
+    attrinfo="$(attribsafe "$info")"
 
     minutes="$(printf "%d:%02d" $(($length / 60)) $(($length % 60)) )"
 
     tee "$cache" <<VIDEOend
-      <li class="thumb">
+      <li id="$attrinfo" class="thumb">
         <button class="watchlink" name="${linkinfo}" formaction="?action=watch&i=${linkinfo}">
           <img src="$thumb" alt="Preview not yet available">
         </button>