-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathscript.js
More file actions
27 lines (23 loc) · 781 Bytes
/
script.js
File metadata and controls
27 lines (23 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* 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');
});
});
jQuery(document).ready(function () {
jQuery('.btn_incledit').closest('.plugin_include_content').after('<div style="clear:both"></div>');
});
// vim:ts=4:sw=4:et: