Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript errors #49

Open
SnowCreative opened this issue Jun 14, 2022 · 0 comments
Open

Javascript errors #49

SnowCreative opened this issue Jun 14, 2022 · 0 comments

Comments

@SnowCreative
Copy link

SnowCreative commented Jun 14, 2022

Just tried your latest version(0.3.0-pl [beta]) in MODX 2.8.4. It's not working. On launching the Media Manager window, it generates these javascript errors:

imageplus.min.js?v=v2.8.9:6 jQuery.Deferred exception: $(...).select2 is not a function TypeError: $(...).select2 is not a function
at Object.setFilters (/assets/components/mediamanager/js/mgr/mediamanager-files.js:501:39)
at Object.init (/assets/components/mediamanager/js/mgr/mediamanager-files.js:143:18)
at HTMLDocument. (/assets/components/mediamanager/js/mgr/mediamanager-files.js:1773:27)
at e (/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.8.9:6:50180)
at t (/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.8.9:6:50504) undefined

imageplus.min.js?v=v2.8.9:6 Uncaught TypeError: $(...).select2 is not a function
at Object.setFilters (mediamanager-files.js:501:39)
at Object.init (mediamanager-files.js:143:18)
at HTMLDocument. (mediamanager-files.js:1773:27)
at e (imageplus.min.js?v=v2.8.9:6:50180)
at t (imageplus.min.js?v=v2.8.9:6:50504)

Also, the Media Manager screen comes up in TinyMCE RTE (2.0.7-pl) just fine, but in ContentBlocks using TinyMCE RTE, the Media Manager screen sits behind the image popup dialog:

I also notice that Jquery is loaded in two places in the manager page header, one nearer the top:

<script src="/assets/components/mediamanager/libs/jquery/1.12.1/js/jquery.min.js"></script> <script src="/assets/components/mediamanager/libs/jquery-ui/1.11.4/js/jquery-ui.min.js"></script>

and again further down:

<script src="/assets/components/mediamanager/libs/jquery/1.12.1/js/jquery.min.js?v=284pl"></script> <script src="/assets/components/mediamanager/libs/jquery-ui/1.11.4/js/jquery-ui.min.js?v=284pl"></script>

Why are these loaded twice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant