Bug Tracker

Opened 5 years ago

Closed 4 years ago

Last modified 4 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 5 years ago by timmywil

  • Component changed from unfiled to ajax
  • Milestone changed from None to 1.next
  • Priority changed from undecided to low
  • Status changed from new to open

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

comment:2 Changed 4 years ago by rwaldron

  • Resolution set to fixed
  • Status changed from open to closed

comment:4 Changed 4 years ago by rwaldron

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:5 Changed 4 years ago by rwaldron

  • Owner set to markelog
  • Status changed from reopened to assigned

comment:6 Changed 4 years ago by Oleg

  • Resolution set to fixed
  • Status changed from assigned to closed

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

Changeset: 6bed348a007f8467dfc09cf63a1783bce673c3f4

comment:7 Changed 4 years ago by dmethvin

  • Milestone changed from 1.next to 1.8
Note: See TracTickets for help on using tickets.