Skip to content

Commit f1cc413

Browse files
authored
fix: Added back jQuery and $ to the window object for plugin change forms (#8191)
* fix: Added back jQuery and $ to the window object for plugin change forms * Shorten
1 parent fdda30c commit f1cc413

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cms/static/cms/js/admin.base.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ const CMS = {
1818
// in case some data is already attached to the global CMS
1919
// we must not override it
2020
window.CMS = CMS.$.extend(window.CMS || {}, CMS);
21+
22+
// make sure that jQuery is available as $ and jQuery
23+
if (!window.jQuery) {
24+
window.$ = window.jQuery = CMS.$;
25+
}

0 commit comments

Comments
 (0)