fixes #2285
Notes need to be disabled because they don't work on webms, the positions are bugged. Also enable video controls by default because why not.
This commit is contained in:
@@ -682,7 +682,7 @@ Danbooru.Note = {
|
||||
}
|
||||
|
||||
$(function() {
|
||||
if ($("#c-posts").length && $("#a-show").length && $("#image").length) {
|
||||
if ($("#c-posts").length && $("#a-show").length && $("#image").length && !$("video#image").length) {
|
||||
if ($("#note-locked-notice").length == 0) {
|
||||
$("#translate").bind("click", Danbooru.Note.TranslationMode.toggle);
|
||||
$(document).bind("keypress", "n", Danbooru.Note.TranslationMode.toggle);
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<%= content_tag(:video, nil, :width => post.image_width, :height => post.image_height, :autoplay => true, :loop => true, :src => post.file_url) %>
|
||||
<%= content_tag(:video, nil, :id => "image", :width => post.image_width, :height => post.image_height, :autoplay => true, :loop => true, :controls => "controls", :src => post.file_url) %>
|
||||
|
||||
<p><%= link_to "Save this video (right click and save)", post.file_url %></p>
|
||||
|
||||
Reference in New Issue
Block a user