From 82d40e32363c4e96996eca7ee44ade879589aa0e Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 26 Apr 2020 16:33:36 +0200 Subject: Expand tabs and remove trailing whitespace --- ratatoeskr/js/backend.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'ratatoeskr/js') diff --git a/ratatoeskr/js/backend.js b/ratatoeskr/js/backend.js index d131bfe..8b60c2d 100644 --- a/ratatoeskr/js/backend.js +++ b/ratatoeskr/js/backend.js @@ -1,19 +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"); - } - }); + $("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