script.js 630 B

12345678910111213141516171819202122
  1. /**
  2. * Javascript functionality for the include plugin
  3. */
  4. /**
  5. * Highlight the included section when hovering over the appropriate include edit button
  6. *
  7. * @author Andreas Gohr <andi@splitbrain.org>
  8. * @author Michael Klier <chi@chimeric.de>
  9. * @author Michael Hamann <michael@content-space.de>
  10. */
  11. jQuery(function() {
  12. jQuery('.btn_incledit')
  13. .mouseover(function () {
  14. jQuery(this).closest('.plugin_include_content').addClass('section_highlight');
  15. })
  16. .mouseout(function () {
  17. jQuery('.section_highlight').removeClass('section_highlight');
  18. });
  19. });
  20. // vim:ts=4:sw=4:et: