From bc17be48532b3dedd88931167613155f7b9a7a3f Mon Sep 17 00:00:00 2001 From: Mic Date: Mon, 28 Apr 2025 21:13:00 +0200 Subject: [PATCH] add new fields to clearFields function for ChatGPT web model and project. see #277 #168 --- pages/customprompts/mzta-custom-prompts.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/customprompts/mzta-custom-prompts.js b/pages/customprompts/mzta-custom-prompts.js index f3757d78..15608ece 100644 --- a/pages/customprompts/mzta-custom-prompts.js +++ b/pages/customprompts/mzta-custom-prompts.js @@ -795,10 +795,13 @@ function checkFields() { } -function clearFields() { //TODO add new fields +function clearFields() { document.getElementById('txtIdNew').value = ''; document.getElementById('txtNameNew').value = ''; document.getElementById('txtTextNew').value = ''; + document.getElementById('chatGPTWebModelNew').value = ''; + document.getElementById('chatGPTWebProjectNew').value = ''; + document.getElementById('chatGPTWebCustomGPTNew').value = ''; document.getElementById('selectTypeNew').value = '0'; document.getElementById('selectActionNew').value = '0'; document.getElementById('checkboxNeedSelectedNew').value = '0';