Bug Tracker

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#10524 closed bug (fixed)

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

Reported by: matt@… 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.

Change History (7)

comment:1 Changed 6 years ago by timmywil

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.

comment:2 Changed 5 years ago by Rick Waldron

Resolution: fixed
Status: openclosed

comment:4 Changed 5 years ago by Rick Waldron

Resolution: fixed
Status: closedreopened

comment:5 Changed 5 years ago by Rick Waldron

Owner: set to markelog
Status: reopenedassigned

comment:6 Changed 5 years ago by Oleg

Resolution: fixed
Status: assignedclosed

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

Changeset: 6bed348a007f8467dfc09cf63a1783bce673c3f4

comment:7 Changed 5 years ago by dmethvin

Milestone: 1.next1.8
Note: See TracTickets for help on using tickets.