summaryrefslogtreecommitdiff
path: root/platform/www/lib/plugins/include/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'platform/www/lib/plugins/include/script.js')
-rw-r--r--platform/www/lib/plugins/include/script.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/platform/www/lib/plugins/include/script.js b/platform/www/lib/plugins/include/script.js
new file mode 100644
index 0000000..8c1edbb
--- /dev/null
+++ b/platform/www/lib/plugins/include/script.js
@@ -0,0 +1,22 @@
+/**
+ * Javascript functionality for the include plugin
+ */
+
+/**
+ * Highlight the included section when hovering over the appropriate include edit button
+ *
+ * @author Andreas Gohr <andi@splitbrain.org>
+ * @author Michael Klier <chi@chimeric.de>
+ * @author Michael Hamann <michael@content-space.de>
+ */
+jQuery(function() {
+ jQuery('.btn_incledit')
+ .mouseover(function () {
+ jQuery(this).closest('.plugin_include_content').addClass('section_highlight');
+ })
+ .mouseout(function () {
+ jQuery('.section_highlight').removeClass('section_highlight');
+ });
+});
+
+// vim:ts=4:sw=4:et: