Hot answers tagged

3

A better solution for disabling JCaption injection in content pages is to override Joomla's core 'behavior.caption' HTML behavior with a stub function. You achieve this by creating a simple system plugin as follows: use Joomla\CMS\HTML\HTMLHelper; class PlgSystemCaptionDisabler extends JPlugin { function onAfterInitialise() { if (!HTMLHelper::...


2

If you're using ChosenJS, which is the fancy select library that Joomla 3.x uses, then you'll need to manually instruct it to update the list, because it doesn't use any observers by default. You can do this by using the following: jQuery('#jform_identificator').trigger("chosen:updated");


2

Put the event listener on the underlying hidden select field not on the chozen ui element. The id of the select will be the same id without the _chzn suffix. jQuery(document).ready(function(){ jQuery("#jform_myfile").change(function(){ UIkit.modal('#displayimage').show(); }); });


1

With the contribution of @mrentropy from the page https://stackoverflow.com/a/48098097/1390452, I wrote this code to resolve the messages: jQuery.event.special.mousewheel = { setup: function( _, ns, handle ){ if ( ns.includes("noPreventDefault") ) { this.addEventListener("mousewheel", handle, { passive: false }); } else { ...


1

I don't see anything wrong with your code, but just in case it's helpful I'm using this method for including the library and I do not see your error. use \Joomla\CMS\HTML\HTMLHelper; use \Joomla\CMS\Factory; use \Joomla\CMS\Uri\Uri; use \Joomla\CMS\Router\Route; use \Joomla\CMS\Layout\LayoutHelper; use \Joomla\CMS\Language\Text; HTMLHelper::_('bootstrap....


1

You have a JavaScript error: SyntaxError: missing ) after argument list Wrap argument list in curly brackets: jQuery(document).ready(function() { jQuery(".owl-carousel").owlCarousel({ loop:true, margin:10 }); });


Only top voted, non community-wiki answers of a minimum length are eligible