1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

Restore qualifyHoverTitles attribute to link widget

This commit is contained in:
Jeremy Ruston 2013-03-05 11:55:25 +00:00
parent ff3bdcabd6
commit 8e9b2996eb
2 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,11 @@ LinkWidget.prototype.generate = function() {
// Get the parameters from the attributes
this.to = this.renderer.getAttribute("to");
this.hover = this.renderer.getAttribute("hover");
this.qualifyHoverTitles = this.renderer.getAttribute("qualifyHoverTitles");
// Qualify the hover tiddler title if needed
if(this.qualifyHoverTitles) {
this.hover = this.hover + "-" + this.renderer.getContextScopeId();
}
// Determine the default link characteristics
this.isExternal = isLinkExternal(this.to);
if(!this.isExternal) {

View File

@ -7,6 +7,7 @@ The `link` widget generates links to tiddlers and external URIs. Optionally, hov
* `to` - link target can be a URL
* `hover` - the title of a tiddler containing the popup state to set when hovering over the link
* `qualifyHoverTitles` - if this attribute is present then the title of the hover state tiddler is qualified as described in the PopupMechanism
The `to` attribute is interpreted as an external link if it matches this regular expression: