diff options
author | Kevin Chabowski <kevin@kch42.de> | 2012-05-26 21:52:40 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2012-05-26 21:52:40 +0200 |
commit | 88099c2986b9fd75fb4de3ae2066b66770bbe8ef (patch) | |
tree | c8086228367fb988a940b4408160076c5102c405 /ratatoeskr/js | |
parent | 0915d74865b0cab61c3a505e802b80ac048cdd3f (diff) | |
parent | 04b47bc50dd147ad2156a29bdb274049f99d9bce (diff) | |
download | ratatoeskr-cms-88099c2986b9fd75fb4de3ae2066b66770bbe8ef.tar.gz ratatoeskr-cms-88099c2986b9fd75fb4de3ae2066b66770bbe8ef.tar.bz2 ratatoeskr-cms-88099c2986b9fd75fb4de3ae2066b66770bbe8ef.zip |
Merge branch 'feature-ui-improvements' into develop
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 |