diff options
Diffstat (limited to 'ratatoeskr')
-rw-r--r-- | ratatoeskr/js/backend.js | 15 | ||||
-rw-r--r-- | ratatoeskr/libs/INFO | 6 | ||||
-rwxr-xr-x | ratatoeskr/templates/src/systemtemplates/master.html | 2 |
3 files changed, 6 insertions, 17 deletions
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 <http://sourceforge.net/projects/kses/> - -2. jQuery - - Place jquery.min.js into this folder. - - jQuery can be found at <http://jquery.com>
\ 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 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <title><ste:get_translation for="section_$section" />::<ste:escape>$pagetitle</ste:escape> - Ratatöskr</title> - <script type="text/javascript" src="$rel_path_to_root/ratatoeskr/libs/jquery.min.js"></script> + <script type="text/javascript" src="$rel_path_to_root/ratatoeskr/vendor/components/jquery/jquery.min.js"></script> <script type="text/javascript" src="$rel_path_to_root/ratatoeskr/js/backend.js"></script> <ste:mktag name="cms_style"><link rel="stylesheet" type="text/css" media="screen" href="$rel_path_to_root/ratatoeskr/cms_style/<ste:tagcontent />" /></ste:mktag> <ste:cms_style>layout.css</ste:cms_style> |