Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caldav/Carddav admin html page: enable editing DAV:displayname #5024

Merged
merged 3 commits into from
Sep 19, 2024

Conversation

dilyanpalauzov
Copy link
Contributor

I have some changes to the generated admin pages, which enable editing WebDAV properties.

The current, first part reorganizes list_calendars() and list_addressbooks() to enable editing the properties over AJAX.

  • merge imap/http_carddav.js into imap/http_caldav.js and make the latter more generic, in order to serve both CalDAV and CardDAV administration.
  • all calendars are numbered in the generated HTML, starting from zero and each JavaScript function receives as parameter the calendar/addressbook number, on which to enact an action.

I think I have switched away from passing displayname to JavaScript functions, because its content must be HTML-escaped to work reliably, but is not - cf. #3389.

@ksmurchison
Copy link
Contributor

This looks good. I think we would want to rename http_caldav.js to http_calcarddav.js or maybe even http_cal_abook.js

@dilyanpalauzov
Copy link
Contributor Author

I think we would want to rename http_caldav.js to http_calcarddav.js or maybe even http_cal_abook.js

Renaming http_caldav.js can be done later.

to enable editing the properties over AJAX.

- merge imap/http_carddav.js into imap/http_caldav.js and make the latter
  more generic, in order to serve both CalDAV and CardDAV administration.
- all calendars are numbered in the generated HTML, starting from zero and
  each JavaScript function receives as parameter the calendar/addressbook
  number, on which to enact an action.
@ksmurchison ksmurchison merged commit c1a4661 into cyrusimap:master Sep 19, 2024
1 check passed
@dilyanpalauzov dilyanpalauzov deleted the delete_http_carddav_js branch September 19, 2024 15:03
dilyanpalauzov added a commit to dilyanpalauzov/cyrus-imapd that referenced this pull request Sep 24, 2024
IN UPSTREAM - part of cyrusimap#5024
NOT IN 3.10

to enable editing the properties over AJAX.

- merge imap/http_carddav.js into imap/http_caldav.js and make the latter
  more generic, in order to serve both CalDAV and CardDAV administration.
- all calendars are numbered in the generated HTML, starting from zero and
  each JavaScript function receives as parameter the calendar/addressbook
  number, on which to enact an action.
dilyanpalauzov added a commit to dilyanpalauzov/cyrus-imapd that referenced this pull request Sep 24, 2024
dilyanpalauzov pushed a commit to dilyanpalauzov/cyrus-imapd that referenced this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants