From 51b1f18a767966e392592a9cebf0a1f424882d54 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Thu, 11 Aug 2022 17:00:22 -0400 Subject: hide upload button when editing existing event --- radicale_infcloud/web/forms.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale_infcloud/web/forms.js b/radicale_infcloud/web/forms.js index 62f6aec..e8155e9 100644 --- a/radicale_infcloud/web/forms.js +++ b/radicale_infcloud/web/forms.js @@ -1726,6 +1726,7 @@ function showEventForm(date, allDay, calEvent, jsEvent, mod, repeatOne, confirmR $('#duplicateButton').hide(); $('#editOptionsButton').hide(); $('#resetButton').hide(); + $('#uploadButton').show(); $('#deleteButton').hide(); if($('#ResourceCalDAVList').find('.resourceCalDAV_item.resourceCalDAV_item_selected').length>0 && $('#event_calendar').find('option[value="'+$('#ResourceCalDAVList').find('.resourceCalDAV_item.resourceCalDAV_item_selected').attr("data-id")+'"]').length>0) @@ -2890,8 +2891,7 @@ function startEditModeEvent() $('#saveButton').show(); $('#resetButton').show(); $('#deleteButton').show(); - /* WORKHERE: hide the uploadButton when editing an existing object */ - $('#uploadButton').show(); + /* Do not show uploadButton; it will be handled elsewhere */ $('#uploadButton').on("drop",dropHandler(event)); $('#downloadButton').hide(); $('#show').val(''); -- cgit