diff options
author | B. Stack <bgstack15@gmail.com> | 2022-08-11 17:00:22 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-08-11 17:00:22 -0400 |
commit | 51b1f18a767966e392592a9cebf0a1f424882d54 (patch) | |
tree | a9e058906c6d85092988ce929d223d717eb9c5c2 | |
parent | WIP: makes two objects, each with quirks (diff) | |
download | radicaleinfcloud-51b1f18a767966e392592a9cebf0a1f424882d54.tar.gz radicaleinfcloud-51b1f18a767966e392592a9cebf0a1f424882d54.tar.bz2 radicaleinfcloud-51b1f18a767966e392592a9cebf0a1f424882d54.zip |
hide upload button when editing existing event
-rw-r--r-- | radicale_infcloud/web/forms.js | 4 |
1 files 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(''); |