From 47afa98ed9669e77e88d176ef33117ff8cceaf95 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 3 Jan 2023 11:46:41 -0500 Subject: make ctrl+enter press button save on dialog edit --- radicale_infcloud/web/main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/radicale_infcloud/web/main.js b/radicale_infcloud/web/main.js index 84b42dd..bd8a584 100644 --- a/radicale_infcloud/web/main.js +++ b/radicale_infcloud/web/main.js @@ -1600,9 +1600,16 @@ window.onload=globalMain; window.onkeydown=function(event) { switch(event.which) { + case 10: + /* case 10 is for Mac or possibly Chrome compatibility. https://stackoverflow.com/a/9343095 */ + if(globalActiveApp=='CalDavZAP' && $('#event_details_template').is(':visible') && $('#saveButton').is(':visible') && event.ctrlKey) + $('#saveButton').trigger('click'); + break; case 13: if(!isUserLogged) $('#Login').find('[data-type="system_login"]').trigger('click'); + if(globalActiveApp=='CalDavZAP' && $('#event_details_template').is(':visible') && $('#saveButton').is(':visible') && event.ctrlKey) + $('#saveButton').trigger('click'); break; case 27: if(globalActiveApp=='CalDavZAP' && $('#CAEvent').is(':visible') && $('#EventDisabler').is(':hidden')) -- cgit From 5ebb2e8a138b7041ef15dc53dadad00aeea263d1 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 3 Jan 2023 11:48:15 -0500 Subject: make update-infcloud-cache use env MANIFEST --- update-infcloud-cache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-infcloud-cache b/update-infcloud-cache index 071ec77..162b8d1 100755 --- a/update-infcloud-cache +++ b/update-infcloud-cache @@ -4,7 +4,7 @@ # Use this script every time you modify any file to force browsers to reload it (empty HTML5 cache). USE_BIN=none -MANIFEST=/etc/infcloud/cache.manifest +test -z "${MANIFEST}" && MANIFEST=/etc/infcloud/cache.manifest test -e $( command -v ed 2>/dev/null ) && USE_BIN=ed test -e $( command -v sed 2>/dev/null ) && USE_BIN=sed command -v "${USE_BIN}" &> /dev/null || { echo "Error: 'ed' not installed. Aborting." > /dev/stderr; exit 1; } -- cgit