WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3519 closed defect (bug) (fixed)

Scritaculous fails to load its pieces in some odd circumstances

Reported by: mdawaffe Owned by:
Milestone: 2.1.1 Priority: low
Severity: normal Version: 2.1
Component: Administration Keywords: has-patch 2nd-opinion
Focuses: Cc:

Description

Scriptaculous's clever JS script loader uses document.write in the head. This breaks sometimes (i.e. nothing is written to the head and scriptaculous' subscripts are not loaded). I do not know why this happens, but I think it has something to do with TinyMCE.

The attached uses WP's script loader instead of scriptaculous'. It also allows you to define a group of scripts by setting that item's src to '' in the script loader (see, for example, the definition of scriptaculous).

2.1?

Attachments (1)

3519.diff (5.2 KB) - added by mdawaffe 10 years ago.

Download all attachments as: .zip

Change History (6)

@mdawaffe
10 years ago

#1 @ryan
10 years ago

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

(In [4701]) Scriptaculous loader changes from mdawaffe. fixes #3519

#2 @mdawaffe
10 years ago

  • Milestone changed from 2.1 to 2.1.1
  • Resolution fixed deleted
  • Status changed from closed to reopened

wp-scriptaculous.js never added. Reopening.

#4 @ryan
10 years ago

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

(In [4813]) Update to prototype 1.5.0 and scriptaculous 1.7.0. Fix some AJAXy bits. Props mdawaffe. fixes #3645 #3676 #3519

#5 @ryan
10 years ago

(In [4823]) Add wp-scriptaculous.js. fixes #3703 #3519

Note: See TracTickets for help on using tickets.