From 35c1ff34612731ba91c37b2a3b58108b0c73d67b Mon Sep 17 00:00:00 2001 From: Azmoria <65363489+Azmoria@users.noreply.github.com> Date: Thu, 28 Sep 2023 07:14:39 -0400 Subject: [PATCH] Fix - Show url is ok but validation is not available for UVTT scene urls. (show ? instead of x) --- ScenesPanel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ScenesPanel.js b/ScenesPanel.js index 04fd1ae10..aadb9b62b 100644 --- a/ScenesPanel.js +++ b/ScenesPanel.js @@ -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 @@ -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 }