joomla_test/modules/mod_sp_news_highlighter/elements/js/script.js
2020-01-02 22:20:31 +07:00

26 lines
1.0 KiB
JavaScript

/*
# SP News Highlighter Module by JoomShaper.com
# --------------------------------------------
# Author JoomShaper http://www.joomshaper.com
# Copyright (C) 2010 - 2013 JoomShaper.com. All Rights Reserved.
# License - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.joomshaper.com
*/
jQuery.noConflict();
jQuery(document).ready(function(){
showhide();
jQuery('#jform_params_content_source').change(function() {showhide()});
jQuery('#jform_params_content_source').blur(function() {showhide()});
function showhide(){
if (jQuery("#jform_params_content_source").val()=="k2") {
jQuery("#jform_params_catid").parent().css("display", "none");
jQuery("#jformparamsk2catids").parent().css("display", "block");
} else {
jQuery("#jformparamsk2catids").parent().css("display", "none");
jQuery("#jform_params_catid").parent().css("display", "block");
}
jQuery('.pane-slider').css("height", "auto");
}
var empty =jQuery('#jform_params___field1-lbl');
if (empty) empty.parent().remove();
});