From df3d1cb5fc5ae0520df305c74f8d5887e4feee05 Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 3 Feb 2024 21:05:23 +0100 Subject: [PATCH] Feedback form: enable/disable SUBMIT button automatically --- emhttp/plugins/dynamix/scripts/feedback | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/emhttp/plugins/dynamix/scripts/feedback b/emhttp/plugins/dynamix/scripts/feedback index 63750c07f..0525caa51 100755 --- a/emhttp/plugins/dynamix/scripts/feedback +++ b/emhttp/plugins/dynamix/scripts/feedback @@ -174,6 +174,7 @@ function form_submit(url, params, panel, diagnostics) { }); return; } + params.email = $('input#email').val(); params.timestamp = unraid_timestamp; params.osversion = unraid_osversion; params.keyfile = inkeyfile; @@ -243,17 +244,17 @@ $(function() { $('#submit-button').click(function() { switch ($('input[name=mode]:checked').val()) { case 'featureRequest': - form_submit('https://keys.lime-technology.com/feedback/featurerequest',{description:$('#featureRequest').val(), email:$('input#email').val()}, $('#featureRequest_panel')); + form_submit('https://keys.lime-technology.com/feedback/featurerequest',{description:$('#featureRequest').val()}, $('#featureRequest_panel')); break; case 'bugReport': - form_submit('https://keys.lime-technology.com/feedback/bugreport',{description:$('#bugReport').val(), email:$('input#email').val()}, $('#bugReport_panel'), 1); + form_submit('https://keys.lime-technology.com/feedback/bugreport',{description:$('#bugReport').val()}, $('#bugReport_panel'), 1); break; case 'troubleshoot': // @todo - update this to use a new troubleshoot endpoint - form_submit('https://keys.lime-technology.com/feedback/bugreport',{description:$('#troubleshoot').val(), email:$('input#email').val()}, $('#troubleshoot_panel'), 1); + form_submit('https://keys.lime-technology.com/feedback/bugreport',{description:$('#troubleshoot').val()}, $('#troubleshoot_panel'), 1); break; case 'otherComment': - form_submit('https://keys.lime-technology.com/feedback/comment',{description:$('#otherComment').val(), email:$('input#email').val()}, $('#otherComment_panel')); + form_submit('https://keys.lime-technology.com/feedback/comment',{description:$('#otherComment').val()}, $('#otherComment_panel')); break; } });