248
Bearbeitungen
Änderungen
keine Bearbeitungszusammenfassung
// That way WINAPO SQL looks like big link and is not affected by slideToggle() on Addon-Produkte.
jQuery(document).ready(function () {
var sql_margin_top = jQuery("#n-WINAPO-SQL a").css("margin-top");
var sql_margin_bottom = "calc(" + jQuery("#p-AddOn-Produkte").css("margin-bottom") + " + " + jQuery("#p-AddOn-Produkte div").css("padding-bottom") + ")";
var sql_font_size = jQuery("#n-WINAPO-SQL a").css("font-size");
var sql_padding_left = jQuery("#p-search > h3").css("padding-left");
jQuery("#n-WINAPO-SQL").detach();
jQuery("#p-AddOn-Produkte").css({ "margin-bottom": "2px0px" }); jQuery("#p-AddOn-Produkte div").css({ "padding-bottom": "0px" });
jQuery("#p-AddOn-Produkte").after("<a href=\"/Kategorie:WINAPO_SQL\" class=\"portlet generated-sidebar\"><h3>WINAPO SQL</h3></a>");
jQuery("#p-AddOn-Produkte + a > h3").css({ "margin-bottom": sql_margin_bottom, "12pxmargin-top": sql_margin_top, "padding-left": sql_padding_left, "padding-top": "0px", "padding-bottom": "0px", "font-size": sql_font_size }); jQuery("#p-AddOn-Produkte + a").css({"display": "block", "margin-bottom": "0px", "margin-top": "0px", "padding-top": "0px", "padding-bottom": "0px" });
// Register slideToggle() on each category.