Skip to content

Commit

Permalink
Fix - Show url is ok but validation is not available for UVTT scene u…
Browse files Browse the repository at this point in the history
…rls. (show ? instead of x)
  • Loading branch information
Azmoria committed Sep 28, 2023
1 parent 6fcade5 commit 35c1ff3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ScenesPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function validate_image_input(element){
$(self).prev().attr("title")
$(self).prev().removeClass("valid loading")
$(self).prev().addClass("unsure")
$(self).prev().attr("data-hover", "URL is ok. video validation coming soon")
$(self).prev().attr("data-hover", "URL is ok. Video/UVTT validation not available")
$(self).attr("data-valid", false)
}
let url
Expand All @@ -97,7 +97,9 @@ function validate_image_input(element){
display_not_valid("URL is invalid")
return
}
if ($("#player_map_is_video_toggle").hasClass("rc-switch-checked") || $("#dm_map_is_video_toggle").hasClass("rc-switch-checked")){

let sceneData = window.ScenesHandler.scenes.filter(d => d.id == $('#edit_dialog').attr('data-scene-id'))[0];
if (sceneData.UVTTFile == 1 || $("#player_map_is_video_toggle").hasClass("rc-switch-checked") || $("#dm_map_is_video_toggle").hasClass("rc-switch-checked")){
display_unsure()
return
}
Expand Down

0 comments on commit 35c1ff3

Please sign in to comment.