diff options
author | Yaco <franco@reevo.org> | 2022-10-30 20:29:56 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2022-10-30 20:29:56 -0300 |
commit | f6ada400510ba77a2840d1944cb0a184269c4849 (patch) | |
tree | 4869f00719ad1d2a40b41f3bdba19d270bcc751e /platform/www/lib/plugins/include/script.js | |
parent | 2a34419fc2b9240132303395dfa72534afb47e4b (diff) |
adds include plugin
Diffstat (limited to 'platform/www/lib/plugins/include/script.js')
-rw-r--r-- | platform/www/lib/plugins/include/script.js | 22 |
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: |