From bf5b07ac12a5a2b890c8a60b38fa8226564bcb46 Mon Sep 17 00:00:00 2001 From: Devdatt Bhatt Date: Wed, 20 May 2026 14:45:53 +0000 Subject: [PATCH] content rating updated --- encoder/app.php | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/encoder/app.php b/encoder/app.php index 1e2849a..cde2272 100644 --- a/encoder/app.php +++ b/encoder/app.php @@ -152,15 +152,15 @@ include 'header.php'; function prepareRemoval(inputId, removeInputId, previewImgId) { // 1. Clear the file input document.getElementById(inputId).value = ""; - + // 2. Set the hidden removal flag for PHP to process on submit document.getElementById(removeInputId).value = "1"; - + // 3. UI Feedback: Hide the image preview immediately const imgElement = document.getElementById(previewImgId); if (imgElement) { imgElement.style.display = 'none'; - + // Hide the "Remove Existing" button (it's the next sibling of the image) const btn = imgElement.nextElementSibling; if (btn && btn.tagName === 'BUTTON') { @@ -236,22 +236,24 @@ include 'header.php'; -
- +