aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-05-21 16:13:37 -0400
committerB. Stack <bgstack15@gmail.com>2022-05-21 16:13:37 -0400
commit3516c72e5772094bb5094023f7cc9a33a469587a (patch)
tree7222286d113467e96b304aadd34dc8f5448ec643
parentre-add accountSettings parameter (diff)
downloadradicaleinfcloud-3516c72e5772094bb5094023f7cc9a33a469587a.tar.gz
radicaleinfcloud-3516c72e5772094bb5094023f7cc9a33a469587a.tar.bz2
radicaleinfcloud-3516c72e5772094bb5094023f7cc9a33a469587a.zip
disable stub upload stuff
-rw-r--r--infcloud.spec5
-rw-r--r--radicale_infcloud/web/forms.js32
-rw-r--r--radicale_infcloud/web/index.html1
3 files changed, 4 insertions, 34 deletions
diff --git a/infcloud.spec b/infcloud.spec
index 78d7ecc..2d70d01 100644
--- a/infcloud.spec
+++ b/infcloud.spec
@@ -2,7 +2,7 @@
%define pname RadicaleInfCloud
Name: infcloud
Version: 0.13.1
-Release: 1stackrpms1.1%{?dist}
+Release: 1stackrpms1.2%{?dist}
Summary: Rich web client for carddav and caldav
BuildArch: noarch
@@ -43,6 +43,9 @@ ln -s %{_sysconfdir}/%{name}/cache.manifest %{buildroot}%{_datadir}/%{name}/radi
%doc README-stackrpms.md
%changelog
+* Sat May 21 2022 B. Stack <bgstack15@gmail.com> - 0.13.1-1stackrpms1.2
+- Disable upload button and stub functions which caused problems
+
* Thu May 19 2022 B. Stack <bgstack15@gmail.com> - 0.13.1-1stackrpms1.1
- Improve patches
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);
diff --git a/radicale_infcloud/web/index.html b/radicale_infcloud/web/index.html
index 608192e..26ee0d5 100644
--- a/radicale_infcloud/web/index.html
+++ b/radicale_infcloud/web/index.html
@@ -632,7 +632,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<input id="resetButton" type="button" value="Reset" data-type="reset" />
<input id="closeButton" type="button" value="Cancel" data-type="cancel" />
<input id="downloadButton" type="button" value="Download" data-type="download"/>
- <input id="uploadButton" type="button" value="Import" data-type="upload" ondrop="dropHandler(event)" ondragover="dragOverHandler(event);"/>
<input id="deleteButton" type="button" value="Delete" data-type="delete" onclick="updateEventFormDimensions(true);$('#CAEvent .saveLoader').show();deleteEvent();" />
</td>
</tr>
bgstack15