Opened 3 years ago

Closed 3 years ago

#17790 closed Bug (fixed)

Ajax CSRF example is needlessly restrictive

Reported by: jonathan.hayward@… Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: yes UI/UX: no

Description

On https://docs.djangoproject.com/en/dev/ref/contrib/csrf/ , the jQuery call begins "$(document)..." which needlessly locks the user into using jQuery only, and not jQuery plus other libraries, which jQuery is designed to do; jQuery can be told to relinquish the "$" identifier, which other libraries like Prototype depend on. There is no loss and pure gain in terms of compatibility with multiple library usage if the call begins "jQuery(document)..."

Change History (1)

comment:1 Changed 3 years ago by carljm

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

In [17623]:

Fixed #17790 - Made the Ajax CSRF jQuery example work with jQuery in compatibility mode, too. Thanks Jonathan Hayward for the suggestion.

Note: See TracTickets for help on using tickets.
Back to Top