[commits] [Wiki] created: Doc/Dev/Kronolith/AjaxDeveloperNotes
Ralf Lang (B1 Systems GmbH)
lang at b1-systems.de
Tue Oct 26 12:03:41 UTC 2021
rlang Tue, 26 Oct 2021 12:03:41 +0000
Created page: https://wiki.horde.org/Doc/Dev/Kronolith/AjaxDeveloperNotes
+ Random notes on Kronolith Ajax view
++ Full-Display events
are loaded via AjaxFramework Handler/getEvent
this calls into shared code to transform the javascript submitted into
a kronolith event
calls event->toJson for frontend presentation
calls attendee->toJson but adds some transformations
++ Saving an event from Ajax
AjaxFramework saveEvent
$event is initialized from readForm() method
Attendees are scanned for existing and removed
edit.inc includes the mask with both user and attendee fields
++ Autocompleters
There are suggest-as-you-type autocompleters in the create/edit event forms.
ResourceAutocompleter, ContactAutocompleter and UserAutocompleter are
implemented as so-called Imple's - They are an archaic form of ajax
framework. We should design replacements for them using
horde/http_server and horde/routes.
There is some loss/mismatch of information between users/attendees
restored from a saved event and those newly added through the
autocompleter. Also, it would be good to have the same window for
users and "email attendees" as it feels unnatural to users and also
complicates the backend code.
More information about the commits
mailing list