From 8ad26def303c7dc0db1049b8c72f21c17133ab33 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Mon, 21 May 2012 21:21:00 +0200 Subject: Sidebar blocks of Article editor can be expanded/collapsed. --- ratatoeskr/js/backend.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ratatoeskr/js/backend.js (limited to 'ratatoeskr/js') diff --git a/ratatoeskr/js/backend.js b/ratatoeskr/js/backend.js new file mode 100644 index 0000000..d131bfe --- /dev/null +++ b/ratatoeskr/js/backend.js @@ -0,0 +1,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"); + } + }); +}); \ No newline at end of file -- cgit v1.2.3-70-g09d2