Skip to main content

Bug Tracker

Side navigation

#10524 closed bug (fixed)

Opened October 18, 2011 09:09PM UTC

Closed May 16, 2012 06:04PM UTC

Last modified May 16, 2012 06:10PM UTC

jQuery.fn.load does not merge data parameter with jQuery.ajaxSetup

Reported by: matt@mattlunn.me.uk Owned by: markelog
Priority: low Milestone: 1.8
Component: ajax Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:
Description

The behaviour when passing a data object to load is inconsistent to that observed when passing a data object to object to get/post.

The JS Fiddle here shows that get merges the provided data object with the contents of jQuery.ajaxSettings.data, where as load replaces the contents.

Attachments (0)
Change History (7)

Changed October 19, 2011 03:57PM UTC by timmywil comment:1

component: unfiledajax
milestone: None1.next
priority: undecidedlow
status: newopen

Confirmed. data from ajaxSetup is not included in the load. Seems like that should be the same.

Changed May 01, 2012 06:41PM UTC by rwaldron comment:2

resolution: → fixed
status: openclosed

Changed May 01, 2012 06:48PM UTC by rwaldron comment:3

Changed May 01, 2012 06:49PM UTC by rwaldron comment:4

resolution: fixed
status: closedreopened

Changed May 01, 2012 06:49PM UTC by rwaldron comment:5

owner: → markelog
status: reopenedassigned

Changed May 16, 2012 06:04PM UTC by Oleg comment:6

resolution: → fixed
status: assignedclosed

jQuery.ajaxSetup() data is merged with params. Fixes #10524

Changeset: 6bed348a007f8467dfc09cf63a1783bce673c3f4

Changed May 16, 2012 06:10PM UTC by dmethvin comment:7

milestone: 1.next1.8