From 5db841cbaafe2d4f4bfe9009f5ecca996f21b4d3 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Fri, 25 Sep 2020 22:06:12 +0200 Subject: Require jQuery using composer --- ratatoeskr/js/backend.js | 15 +++++---------- ratatoeskr/libs/INFO | 6 ------ ratatoeskr/templates/src/systemtemplates/master.html | 2 +- 3 files changed, 6 insertions(+), 17 deletions(-) (limited to 'ratatoeskr') diff --git a/ratatoeskr/js/backend.js b/ratatoeskr/js/backend.js index 8b60c2d..cb276b1 100644 --- a/ratatoeskr/js/backend.js +++ b/ratatoeskr/js/backend.js @@ -1,16 +1,11 @@ -$(function() -{ - $("div.articleeditor-metabar-element h2").addClass("metabar_element_expanded").click(function() - { - self = $(this); - if(self.hasClass("metabar_element_expanded")) - { +$(function() { + $("div.articleeditor-metabar-element h2").addClass("metabar_element_expanded").on("click", function() { + var 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 - { + } else { self.removeClass("metabar_element_collapsed"); self.addClass("metabar_element_expanded"); $("div.articleeditor-metabar-element-content", self.parent()).show("fast"); diff --git a/ratatoeskr/libs/INFO b/ratatoeskr/libs/INFO index f1ef415..e821828 100644 --- a/ratatoeskr/libs/INFO +++ b/ratatoeskr/libs/INFO @@ -5,9 +5,3 @@ This directory will hold some libraries Ratatöskr needs. Place "kses.php" from the archive directly into this directory. kses can be found at - -2. jQuery - - Place jquery.min.js into this folder. - - jQuery can be found at \ No newline at end of file diff --git a/ratatoeskr/templates/src/systemtemplates/master.html b/ratatoeskr/templates/src/systemtemplates/master.html index aa2bf4e..3cf3b73 100755 --- a/ratatoeskr/templates/src/systemtemplates/master.html +++ b/ratatoeskr/templates/src/systemtemplates/master.html @@ -32,7 +32,7 @@ <ste:get_translation for="section_$section" />::<ste:escape>$pagetitle</ste:escape> - Ratatöskr - + layout.css -- cgit v1.2.3-70-g09d2