aboutsummaryrefslogtreecommitdiff
path: root/radicale_infcloud/web/forms.js
diff options
context:
space:
mode:
Diffstat (limited to 'radicale_infcloud/web/forms.js')
-rw-r--r--radicale_infcloud/web/forms.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/radicale_infcloud/web/forms.js b/radicale_infcloud/web/forms.js
index 1ebd0af..c125820 100644
--- a/radicale_infcloud/web/forms.js
+++ b/radicale_infcloud/web/forms.js
@@ -31,35 +31,6 @@ function updateTodoFormDimensions(setHeight)
}
}
-function dragOverHandler(event) {
- //if (window.console) {
- // console.log("dragOverHandler",event);
- //}
- event.preventDefault();
- event.stopPropagation();
-}
-
-/* Incomplete import process. The function logs to console but does not use the vcard contents. */
-function dropHandler(event) {
- if (event) {
- event.preventDefault();
- event.stopPropagation();
- if (window.console) {
- console.log("dropHandler",event);
- }
- if(event.dataTransfer && event.dataTransfer && event.dataTransfer.files.length > 0) {
- if(window.console){console.log("files",event.dataTransfer.files);}
- for (let f of event.dataTransfer.files) {
- if(window.console){console.log("file:",f)};
- let reader = new FileReader();
- reader.readAsText(f);
- reader.onload = function(){if(window.console){console.log(reader.result)}};
- reader.onerror = function(){if(window.console){console.log(reader.error)}};
- }
- }
- }
-}
-
function updateEventFormDimensions(setHeight)
{
$('#CAEvent').css('width','');
@@ -2345,7 +2316,6 @@ function showEventForm(date, allDay, calEvent, jsEvent, mod, repeatOne, confirmR
if(mod=='show')
{
$('#saveButton').hide();
- $('#uploadButton').hide();
$('#resetButton').hide();
$('#deleteButton').hide();
if($('#ResourceCalDAVList').find('[data-id="'+calEvent.res_id+'"]').hasClass("resourceCalDAV_item_ro"))
@@ -2874,8 +2844,6 @@ function startEditModeEvent()
$('#saveButton').show();
$('#resetButton').show();
$('#deleteButton').show();
- $('#uploadButton').show();
- $('#uploadButton').on("drop",dropHandler(event));
$('#downloadButton').hide();
$('#show').val('');
$('#eventDetailsTable :input[disabled]').prop('disabled', false);
bgstack15