aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/js
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-05-26 21:52:40 +0200
committerKevin Chabowski <kevin@kch42.de>2012-05-26 21:52:40 +0200
commit88099c2986b9fd75fb4de3ae2066b66770bbe8ef (patch)
treec8086228367fb988a940b4408160076c5102c405 /ratatoeskr/js
parent0915d74865b0cab61c3a505e802b80ac048cdd3f (diff)
parent04b47bc50dd147ad2156a29bdb274049f99d9bce (diff)
downloadratatoeskr-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.js19
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