aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/js/backend.js
blob: d131bfe2c41ad1f4e52f91ad2f2a3fb19cf45090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$(function()
{
	$("div.articleeditor-metabar-element h2").addClass("metabar_element_expanded").click(function()
	{
		self = $(this);
		if(self.hasClass("metabar_element_expanded"))
		{
			self.removeClass("metabar_element_expanded");
			self.addClass("metabar_element_collapsed");
			$("div.articleeditor-metabar-element-content", self.parent()).hide("fast");
		}
		else
		{
			self.removeClass("metabar_element_collapsed");
			self.addClass("metabar_element_expanded");
			$("div.articleeditor-metabar-element-content", self.parent()).show("fast");
		}
	});
});