From ffae321d04880a9c9c39e1e277ca3c2a29fc3689 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Mon, 12 Sep 2022 15:05:39 +1000 Subject: [PATCH] editor: Make public checkbox "unlisted" instead, with negated meaning less confusing --- thrimbletrimmer/edit.html | 4 ++-- thrimbletrimmer/scripts/edit.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/thrimbletrimmer/edit.html b/thrimbletrimmer/edit.html index 1f5fc38..dc7a38e 100644 --- a/thrimbletrimmer/edit.html +++ b/thrimbletrimmer/edit.html @@ -206,8 +206,8 @@
- - + +
diff --git a/thrimbletrimmer/scripts/edit.js b/thrimbletrimmer/scripts/edit.js index 6a7fc23..b94b191 100644 --- a/thrimbletrimmer/scripts/edit.js +++ b/thrimbletrimmer/scripts/edit.js @@ -385,8 +385,8 @@ async function initializeVideoInfo() { modifiedAdvancedOptions = true; } - const publicCheckbox = document.getElementById("advanced-submission-option-public"); - publicCheckbox.checked = videoInfo.public; + const unlistedCheckbox = document.getElementById("advanced-submission-option-unlisted"); + unlistedCheckbox.checked = !videoInfo.public; if (!videoInfo.public) { modifiedAdvancedOptions = true; } @@ -788,7 +788,7 @@ async function sendVideoData(newState, overrideChanges) { const videoTitle = document.getElementById("video-info-title").value; const videoTags = document.getElementById("video-info-tags").value.split(","); const allowHoles = document.getElementById("advanced-submission-option-allow-holes").checked; - const isPublic = document.getElementById("advanced-submission-option-public").checked; + const isPublic = !document.getElementById("advanced-submission-option-unlisted").checked; const uploadLocation = document.getElementById( "advanced-submission-option-upload-location" ).value;