Bug Tracker

Ticket #10524 (closed bug: fixed)

Opened 3 years ago

Last modified 2 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 3 years ago by timmywil

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

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

comment:2 Changed 3 years ago by rwaldron

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

comment:4 Changed 3 years ago by rwaldron

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:5 Changed 3 years ago by rwaldron

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

comment:6 Changed 2 years ago by Oleg

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

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

Changeset: 6bed348a007f8467dfc09cf63a1783bce673c3f4

comment:7 Changed 2 years ago by dmethvin

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