diff options
author | Kevin Chabowski <kevin@kch42.de> | 2012-05-21 21:21:00 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2012-05-21 21:21:00 +0200 |
commit | 8ad26def303c7dc0db1049b8c72f21c17133ab33 (patch) | |
tree | 7c2d16eee832d21a60874f936b893783ae01f226 /ratatoeskr/js | |
parent | d667c2d46d77f06081a9336cd92341865106bf0a (diff) | |
download | ratatoeskr-cms-8ad26def303c7dc0db1049b8c72f21c17133ab33.tar.gz ratatoeskr-cms-8ad26def303c7dc0db1049b8c72f21c17133ab33.tar.bz2 ratatoeskr-cms-8ad26def303c7dc0db1049b8c72f21c17133ab33.zip |
Sidebar blocks of Article editor can be expanded/collapsed.
Diffstat (limited to 'ratatoeskr/js')
-rw-r--r-- | ratatoeskr/js/backend.js | 19 |
1 files changed, 19 insertions, 0 deletions
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 |