An inner wiki link takes me to another page, and to edit that page I need another reload, by clicking "edit page". I want to edit a target page right away, so I add a popover button "edit target" to wiki links:
file="script.js"
var targetLinks = jQuery('a.breadcrumbs, a.wikilink1, a.wikilink2'),
editorLink;
targetLinks.each(function(){
editorLink = '<a class="editorlink" href="' + this.href + '?do=edit' + '">✎</a>';
jQuery(this).append(jQuery(editorLink));
});
The only problem is that a link inside another link seems no good for HTML validator.
What would you advise?
PS. I can think of 2 possibilities:
1. Making two links side by side, and wrapping them into a SPAN (to show a second link on hover by CSS).
2. Adding an event listener on first link hover, to make a popover with absolute x, y.
Isn't all that too much fuss?