mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-29 23:40:45 +00:00
Restore qualifyHoverTitles
attribute to link widget
This commit is contained in:
parent
ff3bdcabd6
commit
8e9b2996eb
@ -28,6 +28,11 @@ LinkWidget.prototype.generate = function() {
|
|||||||
// Get the parameters from the attributes
|
// Get the parameters from the attributes
|
||||||
this.to = this.renderer.getAttribute("to");
|
this.to = this.renderer.getAttribute("to");
|
||||||
this.hover = this.renderer.getAttribute("hover");
|
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
|
// Determine the default link characteristics
|
||||||
this.isExternal = isLinkExternal(this.to);
|
this.isExternal = isLinkExternal(this.to);
|
||||||
if(!this.isExternal) {
|
if(!this.isExternal) {
|
||||||
|
@ -7,6 +7,7 @@ The `link` widget generates links to tiddlers and external URIs. Optionally, hov
|
|||||||
|
|
||||||
* `to` - link target can be a URL
|
* `to` - link target can be a URL
|
||||||
* `hover` - the title of a tiddler containing the popup state to set when hovering over the link
|
* `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:
|
The `to` attribute is interpreted as an external link if it matches this regular expression:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user