- Posts: 10
COMMUNITY FORUM
jQuery conflict / Media Manager doesn't work
- Björn Wichern
-
Topic Author
- Offline
- New Member
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
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
- Posts: 10
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
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
- Posts: 10
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
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
- Posts: 10
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
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
- Posts: 10
// 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
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Björn Wichern
-
Topic Author
- Offline
- New Member
- Posts: 10
... and by disabling the double loaded jQuery Library everything works fine.Lefteris Kavadas wrote: [...] so probably this is a conflict with an other extension.
Joomla 3.2.3 loads jQuery 1.11.0 + jQuery Migrate 1.2.1 into the backend. The Migrate Script helps to make jQuery Plugins < 1.9 down to 1.6.4 compatible by restoring depreciated functions.
cheers,
Björn
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.