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

Update link widget to use current tiddler as default target

This commit is contained in:
Jeremy Ruston 2013-06-09 19:24:45 +01:00
parent 2c8352c442
commit a20eb4867e

View File

@ -26,7 +26,7 @@ var LinkWidget = function(renderer) {
LinkWidget.prototype.generate = function() { 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.renderer.tiddlerTitle);
this.hover = this.renderer.getAttribute("hover"); this.hover = this.renderer.getAttribute("hover");
this.qualifyHoverTitles = this.renderer.getAttribute("qualifyHoverTitles"); this.qualifyHoverTitles = this.renderer.getAttribute("qualifyHoverTitles");
// Qualify the hover tiddler title if needed // Qualify the hover tiddler title if needed