- Posts: 10
COMMUNITY FORUM
jQuery conflict / Media Manager doesn't work
- Björn Wichern
- Topic Author
- Offline
- New Member
Less
More
10 years 6 months ago - 10 years 6 months ago #126232
by Björn Wichern
jQuery conflict / Media Manager doesn't work was created by Björn Wichern
Hi,
I've got a JS conflict Joomla 3.2.3 / K2 (2.6.8 ) Media Manager. It doesn't load anymore. Is there a way to disable the backend jQuery by K2, to get rid of the following script?
kind regards,
Bjoern
I've got a JS conflict Joomla 3.2.3 / K2 (2.6.8 ) Media Manager. It doesn't load anymore. Is there a way to disable the backend jQuery by K2, to get rid of the following script?
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
kind regards,
Bjoern
Please Log in or Create an account to join the conversation.
- Mohamed Abdelaziz
- Offline
- Platinum Member
- Joomla Developer
10 years 6 months ago #126233
by Mohamed Abdelaziz
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Replied by Mohamed Abdelaziz on topic Re: jQuery conflict / Media Manager doesn't work
Are you sure that the conflict is from K2?
If you can copy the error message you see this will help to solve the problem.
If you can copy the error message you see this will help to solve the problem.
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Please Log in or Create an account to join the conversation.
- Björn Wichern
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
10 years 6 months ago - 10 years 6 months ago #126234
by Björn Wichern
Replied by Björn Wichern on topic Re: jQuery conflict / Media Manager doesn't work
Hi,
the error message is(referers to Line 13 template.js of the ISIS Admin Template)
This happens, when the NoNumber Plugin "Better Preview" is activated. Peter from NoNumber adviced to ask here, because the main problem is a double loaded jQuery library. Or in other words: this conflict can happen with other plugins as well.
kind regards,
Bjoern
the error message is
$(...).tooltip is not a function
This happens, when the NoNumber Plugin "Better Preview" is activated. Peter from NoNumber adviced to ask here, because the main problem is a double loaded jQuery library. Or in other words: this conflict can happen with other plugins as well.
kind regards,
Bjoern
Please Log in or Create an account to join the conversation.
- Mohamed Abdelaziz
- Offline
- Platinum Member
- Joomla Developer
10 years 6 months ago #126235
by Mohamed Abdelaziz
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Replied by Mohamed Abdelaziz on topic Re: jQuery conflict / Media Manager doesn't work
Well, in this case, its better to stop loading jQuery in the "Better Preview" plugin itself, if this is available in the plugin paramters.
Otherwise, you can use this plugin to fix the problem: extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/18327
Otherwise, you can use this plugin to fix the problem: extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/18327
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Please Log in or Create an account to join the conversation.
- Björn Wichern
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
10 years 6 months ago #126236
by Björn Wichern
Replied by Björn Wichern on topic Re: jQuery conflict / Media Manager doesn't work
jQuery is loaded by the Joomla Admin Template, not by the NoNumber Plugin.
The jQueryEasy Plugin unfortunately doesn't support backend issues anymore.
The jQueryEasy Plugin unfortunately doesn't support backend issues anymore.
Please Log in or Create an account to join the conversation.
- Mohamed Abdelaziz
- Offline
- Platinum Member
- Joomla Developer
10 years 6 months ago #126237
by Mohamed Abdelaziz
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Replied by Mohamed Abdelaziz on topic Re: jQuery conflict / Media Manager doesn't work
Well, I think you need to modify this file in some way: administrator/components/com_k2/helpers/html.php
There is a function called loadjQuery, and the line you want to remove is at line 84, you can comment it.
There is a function called loadjQuery, and the line you want to remove is at line 84, you can comment it.
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Please Log in or Create an account to join the conversation.
- Björn Wichern
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
10 years 6 months ago - 10 years 6 months ago #126238
by Björn Wichern
Replied by Björn Wichern on topic Re: jQuery conflict / Media Manager doesn't work
Thanks a lot for helping!
The backend jQuery is already called from line 70. It's commented out now and both, media manager and better preview, work now. From line 84 there a the frontend options.
An option for jQuery backend handling would be nice.
The backend jQuery is already called from line 70. It's commented out now and both, media manager and better preview, work now. From line 84 there a the frontend options.
An option for jQuery backend handling would be nice.
Please Log in or Create an account to join the conversation.
- Mohamed Abdelaziz
- Offline
- Platinum Member
- Joomla Developer
10 years 6 months ago #126239
by Mohamed Abdelaziz
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Replied by Mohamed Abdelaziz on topic Re: jQuery conflict / Media Manager doesn't work
Maybe our versions are different, so the line numbers are not identical, I have '{' at line 70 in my version.
Maybe its good to share the modifications better than line numbers, just in case anyone else need it.
Maybe its good to share the modifications better than line numbers, just in case anyone else need it.
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Please Log in or Create an account to join the conversation.
- Björn Wichern
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
10 years 6 months ago #126240
by Björn Wichern
Replied by Björn Wichern on topic Re: jQuery conflict / Media Manager doesn't work
This is, what I've commented out beginning at line 70:
// if($mediaManager)
// {
// $document->addScript('//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js');
// }
// else
// {
// JHtml::_('behavior.framework');
// if ($application->isAdmin() || ($application->isSite() && $params->get('jQueryHandling')))
// {
// JHtml::_('jquery.framework');
// }
// }
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 6 months ago #126241
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: jQuery conflict / Media Manager doesn't work
The reason we load a different jQuery version in media manager is that the media manager does not work with jQuery 1.10 which is bundled in Joomla! . However in our tests there is no issue, so probably this is a conflict with an other extension.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.