-
Notifications
You must be signed in to change notification settings - Fork 73
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
AJAX loader spinning circle is placed before the input field of a DF Customer reference #3973
Comments
Additional Information: Affects CustomerUser dynamic fields of object type Ticket as well, observed in AgentTicketPhone. The spinner in question shows when choosing a suggested element from autocomplete. |
the function triggered to display the AJAX loader spinner is ToggleAjaxLoader in Core.AJAX.js line 108ff. The spinner gets inserted into DOM in line 149: // Show or hide the loader
if (ActiveAJAXCalls[FieldID] > 0) {
if (!$Loader.length) {
$Element.after(LoaderHTML); // <------------------
} $Element here is the original select input element, and the Spinner gets appended after the original select. For Dynamic Fields of Reference Type (I tried with ticket), however, the original select element will be hidden, followed by a dynamic generated select for the autocomplete. Now with Ajax Spinner appended, the DOM looks like:
So yes, in this case the Ajax Spinner is displayed before the (visible) input select. Candidate: Maybe try append to parent, instead of using after, something like this: // Show or hide the loader
if (ActiveAJAXCalls[FieldID] > 0) {
if (!$Loader.length) {
//$Element.after(LoaderHTML);
$Element.parent().append(LoaderHTML);
} Expectation - DOM now looks like:
And thus Spinner to be displayed after the select !? |
test suite run: https://git.otobo.org/rotheross/otobo-testsuite/-/jobs/6860
only known current failures, see #3931 |
Observed in AgentTicketCompose, Dynamic Fields of Object Type Article: For a DF Dropdown, the spinning AJAX loader circle is placed behind the input (that is, to the right of the dropdown), but for the DF Customer Reference (AutoComplete) the spinning circle is placed to the left, between the label and the input field.
The text was updated successfully, but these errors were encountered: