function agileweb_titleset_toggle(title){ var content = $(title).parent().next(); if(content.css("display") == "block"){ $(title).parent().children(".agileweb-titleset-arrownode").html("+"); }else { $(title).parent().children(".agileweb-titleset-arrownode").html("-"); } content.slideToggle(100); } $(function (){ $(".agileweb-titleset-widget[toolbar]").each(function(index,element){ if($(element).find(".agileweb-titleset-buttonfield").attr("inserted") == "false"){ $(element).find(".agileweb-titleset-buttonfield").html($("#"+$(element).attr("toolbar")).html()).attr("inserted","true"); $("#"+$(element).attr("toolbar")).remove(); } }); $(".agileweb-titleset-widget[bottombar]").each(function(index,element){ if($(element).find(".agileweb-titleset-bottombar").attr("inserted") == "false"){ $(element).find(".agileweb-titleset-bottombar").html($("#"+$(element).attr("bottombar")).html()).attr("inserted","true"); $("#"+$(element).attr("bottombar")).remove(); } }); });