Skip to content

improve: 'onComplete:' for ajax script of 'onClickJs:' can be customi…#313

Merged
LesageYann merged 1 commit intodevelopmentfrom
on-complete-custom-for-nested-list
Oct 2, 2021
Merged

improve: 'onComplete:' for ajax script of 'onClickJs:' can be customi…#313
LesageYann merged 1 commit intodevelopmentfrom
on-complete-custom-for-nested-list

Conversation

@LesageYann
Copy link
Copy Markdown
Contributor

Problem :

When the user define something like : onClickJs: [ :entity | ((html jQuery id: divId2) load html: [ :ajaxHtml | ajaxHtml text: 'Selected: ' , entity printString ]) onComplete: 'console.log("an action")'] The nestedList erase the 'onComplete:' script with another script.

Solution :

The nestedList checks present of onComplete defined by user. If it exists, it keeps the user script after the nestedList script. In another case, it run only his script

@LesageYann LesageYann requested a review from jecisc September 29, 2021 13:29
@LesageYann LesageYann merged commit 1eb47ad into development Oct 2, 2021
@jecisc jecisc deleted the on-complete-custom-for-nested-list branch February 24, 2022 13:45
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.

1 participant