aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-05-16 14:16:02 -0400
committerB. Stack <bgstack15@gmail.com>2022-05-16 14:16:02 -0400
commit97e3331176b6035010a6ab7b92ceb94a42c6f08c (patch)
tree485d5b30b7ffde23baf733fa7b9a9c67401a16d8
parentchange name to Calendar (diff)
downloadradicaleinfcloud-97e3331176b6035010a6ab7b92ceb94a42c6f08c.tar.gz
radicaleinfcloud-97e3331176b6035010a6ab7b92ceb94a42c6f08c.tar.bz2
radicaleinfcloud-97e3331176b6035010a6ab7b92ceb94a42c6f08c.zip
fix upload button add event
-rw-r--r--radicale_infcloud/web/forms.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/radicale_infcloud/web/forms.js b/radicale_infcloud/web/forms.js
index c733b6d..1ebd0af 100644
--- a/radicale_infcloud/web/forms.js
+++ b/radicale_infcloud/web/forms.js
@@ -80,7 +80,6 @@ function setFormPosition(jsEvent, confirmRepeat)
dist_y;
$('#event_details_template').css('max-height','');
- document.getElementById('uploadButton').addEventListener("drop", dropHandler(event));
if(jsEvent)
{
@@ -2876,6 +2875,8 @@ function startEditModeEvent()
$('#resetButton').show();
$('#deleteButton').show();
$('#uploadButton').show();
+ $('#uploadButton').on("drop",dropHandler(event));
+ $('#downloadButton').hide();
$('#show').val('');
$('#eventDetailsTable :input[disabled]').prop('disabled', false);
$('#eventDetailsTable :input[type="text"]').prop('readonly', false);
bgstack15