Upstream sync
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
var hideConfirmed = $("input[name=hide_confirmed]:checked").length > 0;
|
||||
|
||||
// Mark the release as confirmed
|
||||
if (<%= @releasable.respond_to?(:file_infos) %>) {
|
||||
$("[data-ujs-target=<%= dom_id(@releasable, "file_info_#{@video_release_confirmation.file_info_id}") %>]").attr("data-confirmed", true).data("confirmed", true)
|
||||
if (<%= @releasable.respond_to?(:files) %>) {
|
||||
$("[data-ujs-target=<%= dom_id(@releasable, "attachment_#{@video_release_confirmation.file_id}") %>]").attr("data-confirmed", true).data("confirmed", true)
|
||||
} else {
|
||||
$("#<%= dom_id(@releasable) %>").attr("data-confirmed", true).data("confirmed", true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user