forked from huginn/huginn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cache_response option to completable form fields
When `cache_response` is set to `false` for completable fields the returned options will not be cached on the client side. The default is `true`. Clearing the cache is needed when the completable response depends on a different option of the Agent. Usage Example: ``` form_configurable :models, roles: :completable, cache_response: false ``` * Disable the completion callback when `select2` is opened programmatically to avoid an infinite loop * Moved the completion ajax call from `select2-open` to `select2-opening` to clear the cached results before `completableDefaultOptions` is called (shows the "Loading ..." message instead of the previous results)
- Loading branch information
Showing
3 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters