Client API event for initialising Detail View Edit?
I have had need to determine when a user puts a field in Detail View into edit mode.
I have a custom combined DateTime field which needed a different "picker" tool so when the used clicks the pencil to edit I remove the jQuery datepicker and load a flatpickr element which supports both date & time editing.
In List View, when a user double clicks on a row, the post.listViewInlineEdit.click
app event is triggered and can be caught. But I couldn't find a similar API event for Detail View editing so I have had to modify the main Vtiger Detail.js class to add one...
Very near the end of the Vtiger_Detail_Js.ajaxEditHandling method, I have added this line: app.event.trigger('AjaxEditEvent', currentTdElement);
.
If there is an event I couldn't find it, so if there isn't one perhaps vtiger could add something like this in the next release?