Skip to content
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

Add ability to merge ajax callbacks when overriding ajax settings #1068

Closed
kartik-v opened this issue Sep 3, 2017 · 1 comment
Closed

Add ability to merge ajax callbacks when overriding ajax settings #1068

kartik-v opened this issue Sep 3, 2017 · 1 comment

Comments

@kartik-v
Copy link
Owner

kartik-v commented Sep 3, 2017

Enhance ability to override beforeSend, success, complete, and error callbacks in ajaxSettings and ajaxDeleteSettings by allowing one to merge the callback functions with the default behavior.

Two new properties added:

  1. mergeAjaxCallbacks: Applicable for override of ajaxSettings. Defaults to false. Can take a value of boolean false OR the string before and after.
    • if set to false, then the callback set in ajaxSettings will overwrite the default ajax callback.
    • if set to before then the callback set in ajaxSettings will be merged before the default ajax callback.
    • if set to after then the callback set in ajaxSettings will be merged after the default ajax callback.
  2. mergeAjaxDeleteCallbacks: Same as above but applicable for ajaxDeleteSettings.
@kartik-v
Copy link
Owner Author

kartik-v commented Sep 9, 2017

Resolved via updates to release v4.4.4.

@kartik-v kartik-v closed this as completed Sep 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant