Hi,
I am using FC 2.1.2 - r1806 on Joomla 2.5.18 with Widgetkit installed. Everything is working well but yesterday I placed a universal muddle instance on my homepage and now my spotlight effect is broken.
The template used in the module is the default one (just titles and links, no gadgets at all) but even with that one there is a lot of scripts that are loaded, is it not possible to avoid that load?
Here is the original part of the scripts loaded without the universal module:
Code:
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/components/com_flexicontent/assets/js/fcvote.js" type="text/javascript"></script>
<script src="/components/com_flexicontent/assets/js/fcfav.js" type="text/javascript"></script>
<script src="/components/com_flexicontent/assets/js/tabber-minimized.js" type="text/javascript"></script>
<script src="/media/widgetkit/js/jquery.js" type="text/javascript"></script>
<script src="/cache/widgetkit/widgetkit-be2cbade.js" type="text/javascript"></script>
<script type="text/javascript">
window.addEvent('domready', function() {
$$('.hasTip').each(function(el) {
var title = el.get('title');
if (title) {
var parts = title.split('::', 2);
el.store('tip:title', parts[0]);
el.store('tip:text', parts[1]);
}
});
var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false});
});
var fcvote_rfolder = "";
var fcfav_rfolder = '';
var fcfav_text=Array(
'Your browser does not support Ajax',
'loading',
'Added to your favourites',
'You need to login to favour this item. It will be added to your personal Favourites list.',
'Removed from your favourites',
'users'
);
var nn_sliders_speed = 250; var nn_sliders_fade_in_speed = 250; var nn_sliders_fade_out_speed = 250; var nn_sliders_mode = 'click'; var nn_sliders_use_cookies = 0; var nn_sliders_set_cookies = 0; var nn_sliders_cookie_name = 'nn_sliders_771de98e2ce6fb652a6701e7c631cfbc'; var nn_sliders_scroll = 0; var nn_sliders_linkscroll = 0; var nn_sliders_url = ''; var nn_sliders_urlscroll = ''; var nn_sliders_use_hash = 1;
</script>
And here the same part when the universal module is enabled:
Code:
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/components/com_flexicontent/assets/js/fcvote.js" type="text/javascript"></script>
<script src="/components/com_flexicontent/assets/js/fcfav.js" type="text/javascript"></script>
<script src="/components/com_flexicontent/assets/js/tabber-minimized.js" type="text/javascript"></script>
<script src="/media/widgetkit/js/jquery.js" type="text/javascript"></script>
<script src="/cache/widgetkit/widgetkit-be2cbade.js" type="text/javascript"></script>
<script src="/components/com_flexicontent/librairies/select2/select2.js" type="text/javascript"></script>
<script src="/components/com_flexicontent/assets/js/tmpl-common.js" type="text/javascript"></script>
<script type="text/javascript">
window.addEvent('domready', function() {
$$('.hasTip').each(function(el) {
var title = el.get('title');
if (title) {
var parts = title.split('::', 2);
el.store('tip:title', parts[0]);
el.store('tip:text', parts[1]);
}
});
var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false});
});
var fcvote_rfolder = "";
var fcfav_rfolder = '';
var fcfav_text=Array(
'Your browser does not support Ajax',
'loading',
'Added to your favourites',
'You need to login to favour this item. It will be added to your personal Favourites list.',
'Removed from your favourites',
'users'
);
var nn_sliders_speed = 250; var nn_sliders_fade_in_speed = 250; var nn_sliders_fade_out_speed = 250; var nn_sliders_mode = 'click'; var nn_sliders_use_cookies = 0; var nn_sliders_set_cookies = 0; var nn_sliders_cookie_name = 'nn_sliders_771de98e2ce6fb652a6701e7c631cfbc'; var nn_sliders_scroll = 0; var nn_sliders_linkscroll = 0; var nn_sliders_url = ''; var nn_sliders_urlscroll = ''; var nn_sliders_use_hash = 1;
jQuery(document).ready(function() {
jQuery('select.use_select2_lib').select2();
jQuery('div.use_select2_lib').each(function() {
var el_container = jQuery(this);
var el_select = el_container.next('select');
var fc_label_text = el_select.attr('fc_label_text');
if (fc_label_text) {
var _label = (fc_label_text.length >= 30) ? fc_label_text.substring(0, 28) + '...' : fc_label_text;
jQuery('<span/>', {
'class': 'fc_has_inner_label fc_has_inner_label_select2',
'text': _label
}).prependTo(el_container.find('.select2-search-field'));
}
var fc_prompt_text = el_select.attr('fc_prompt_text');
if (fc_prompt_text) {
var _prompt = (fc_prompt_text.length >= 30) ? fc_prompt_text.substring(0, 28) + '...' : fc_prompt_text;
jQuery('<span/>', {
'class': 'fc_has_inner_prompt fc_has_inner_prompt_select2',
'text': _prompt
}).prependTo(el_container.find('.select2-search-field')).hide();
}
if ( ! el_select.attr('multiple') ) {
var el = el_container.find('.select2-choice');
var val = el_select.val();
if (val === null) {
el.addClass('fc_highlight_disabled');
} else if (val.length) {
el.addClass('fc_highlight');
} else {
el.removeClass('fc_highlight');
}
}
});
jQuery('select.use_select2_lib').on('open', function() {
var el_container = jQuery(this).parent();
var el = jQuery(this).parent().find('.select2-input');
var el_label = el.prevAll('.fc_has_inner_label');
if (el_label) el_label.hide();
var el_prompt = el.prevAll('.fc_has_inner_prompt');
if (el_prompt) el_prompt.show();
if (jQuery(this).hasClass('select2_list_selected')) {
var els = jQuery('#select2-drop').find('.select2-selected');
els.addClass('select2-selected-highlight').addClass('select2-disabled').removeClass('select2-selected').removeClass('select2-result-selectable');
}
}).on('close', function() {
var el_container = jQuery(this).parent();
var el = jQuery(this).parent().find('.select2-input');
var el_label = el.prevAll('.fc_has_inner_label');
if (el_label) el_label.show();
var el_prompt = el.prevAll('.fc_has_inner_prompt');
if (el_prompt) el_prompt.hide();
if (jQuery(this).hasClass('select2_list_selected')) {
var els = jQuery('#select2-drop').find('.select2-selected-highlight');
els.removeClass('select2-selected-highlight').removeClass('select2-disabled').addClass('select2-result-selectable');
}
}).on
('change', function() {
var el_select = jQuery(this);
if ( ! el_select.attr('multiple') ) {
var el = jQuery(this).prev('div').find('.select2-choice');
var val = el_select.val();
if (val.length) {
el.addClass('fc_highlight');
} else {
el.removeClass('fc_highlight');
}
}
});
jQuery('div.use_select2_lib.select2-container-multi input').on('keydown', function() {
var el = jQuery(this);
setTimeout(function() {
if (el.val().length) {
var el_prompt = el.prevAll('.fc_has_inner_prompt');
if (el_prompt) el_prompt.hide();
} else {
var el_prompt = el.prevAll('.fc_has_inner_prompt');
if (el_prompt) el_prompt.show();
}
}, 0);
});
jQuery('select.use_select2_lib').on('loaded open', function() {
var ul = jQuery('#select2-drop ul.select2-results');
var needsScroll= ul.prop('scrollHeight') > ul.prop('clientHeight');
if (needsScroll) ul.css('overflow-y', 'scroll');
else ul.css('overflow-y', 'auto');
});
});
</script>
<script type="text/javascript">
(function() {
var strings = {"FLEXI_APPLYING_FILTERING":"Applying Filtering","FLEXI_TYPE_TO_LIST":"... type to list","FLEXI_TYPE_TO_FILTER":" ... type to filter"};
if (typeof Joomla == 'undefined') {
Joomla = {};
Joomla.JText = strings;
}
else {
Joomla.JText.load(strings);
}
})();
</script>
Here is the link to the page:
www.belesco.be
Heeeelp :shock: