modern template breaks pages using jquery plugins

Description

The modern debugging template also loads jQuery, which breaks any pages which use jquery and plugins.

Any jquery plugins used by the page are loaded into the first jquery instance, then the debugging template loads a second jquery instance which doesn't have the plugins and any use of the plugins then throws an exception.

jQuery has a no conflict option to avoid this problem.
https://api.jquery.com/jquery.noconflict/

attached is a simple demo script, if you run it with out debugging enabled it runs fine.

if you run it with the modern debugging template enabled, you will see the following error in the console

Environment

None

Activity

Show:
Michael Offner
February 3, 2020, 3:12 PM

i have completely rewritten the debug template. now the template does not load any resource at all.

UNLESS i click on the tab “Metrics“ or “Reference“, so it only loads addional resources in case i interact with it

Michael Offner
February 3, 2020, 3:12 PM

please test with differenz browsers and report the result here

Zac Spitzer
February 3, 2020, 3:35 PM

seems to be working ok for me in Chrome... not getting any javascript errros

but I can't see the line numbers for the query debug...

Pothys - MitrahSoft
February 4, 2020, 8:08 AM
Edited

,


I've checked with your commit in Mozilla, chrome, edge, safari. It work's fine for LDEV-2254.
But some errors happen if we changing the modern template to a classic template in an admin when there is only a modern template is available.
Please look into

Michael Offner
February 7, 2020, 9:05 AM

fixed (we used an older template to integrate)

 

Fixed

Assignee

Michael Offner

Reporter

Zac Spitzer

Priority

New

Labels

Fix versions

Sprint

None

Affects versions

Configure