aboutsummaryrefslogtreecommitdiff
path: root/radicale_infcloud/web/interface.js
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-08-12 10:11:29 -0400
committerB. Stack <bgstack15@gmail.com>2022-08-12 10:11:29 -0400
commitc0d9b3a037bc7574f9d8a81a273e74223a85f6f9 (patch)
tree3935ef685d1a0d9d2522945c2f3406daa2833926 /radicale_infcloud/web/interface.js
parentrestore putVcalendarToCollection, hide dl button (diff)
downloadradicaleinfcloud-c0d9b3a037bc7574f9d8a81a273e74223a85f6f9.tar.gz
radicaleinfcloud-c0d9b3a037bc7574f9d8a81a273e74223a85f6f9.tar.bz2
radicaleinfcloud-c0d9b3a037bc7574f9d8a81a273e74223a85f6f9.zip
move line-endings fix to forms.js
By moving the line-endings fix to this one source location of fileContents, we avoid having to modify multiple places where the input is parsed.
Diffstat (limited to 'radicale_infcloud/web/interface.js')
-rw-r--r--radicale_infcloud/web/interface.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/radicale_infcloud/web/interface.js b/radicale_infcloud/web/interface.js
index b7a4d4c..ce00437 100644
--- a/radicale_infcloud/web/interface.js
+++ b/radicale_infcloud/web/interface.js
@@ -1313,7 +1313,6 @@ function uploadFile(fileContents)
fileContents = fileContents.replace(/^UID:.*$/gm,String("UID:"+newUID));
newEvent = stringToVevent(coll, fileContents, inputUID, $('#etag').val(), true);
//console.log(newEvent);
- newEvent.vcalendar = newEvent.vcalendar.replace(/\r*\n+/gm,'\r\n');
putVcalendarToCollection(coll.accountUID, inputUID, "", fileContents, "", 'vevent', false, false, "");
return true;
}
bgstack15