Both the frontend and backend javascripts rely on Drupal.behaviors.attach which can be called multiple times on a page with AJAX requests. Unfortunately the same code is run every time (like the loading of the sprite) whereas it should only be run once producing duplicated DOM elements or events.

Comments

Aerzas created an issue. See original summary.

aerzas’s picture

Here is a proposed patch.

aerzas’s picture

Status: Active » Needs review

  • ayalon committed ad849de on 8.x-1.x
    Issue #3041834 by Aerzas, ayalon: JS load multiple times the same...
ayalon’s picture

Fixed.

ayalon’s picture

Status: Needs review » Fixed
ayalon’s picture

Status: Fixed » Closed (fixed)