Search and Top Navigation
#6144 closed bug (wontfix)
Opened October 04, 2010 02:08PM UTC
Closed May 18, 2011 12:51PM UTC
tabs ajaxOptions should extend $.ajaxSettings
Reported by: | dmuir | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.tabs | Version: | 1.8.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Because of the way that tabs initiates an ajax request for tab content, the default ajax success and error handlers are lost.
To get them back I need to do:
$('.tabs').tabs({ ajaxOptions: { success : $.ajaxSettings.success, error : $.ajaxSettings.error } });
Would be nice if the defaults actually acted as defaults rather than having to explicitly tell it to use it.
http://jsfiddle.net/gnarf/dYaSq/ Shows us some weird behavior with this for sure... However I'd like to point out the suggestion from http://api.jquery.com/jQuery.ajaxSetup:
Also note that it appears for some reason the ajaxSuccess is being called twice...