1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Fix problem with #1723

Restoring operation of the “default” attribute
This commit is contained in:
Jermolene 2015-05-14 00:07:53 +01:00
parent f88402b195
commit ecdcfe41ac

View File

@ -110,7 +110,7 @@ ButtonWidget.prototype.getBoundingClientRect = function() {
};
ButtonWidget.prototype.isSelected = function() {
return this.wiki.getTextReference(this.set,"",this.getVariable("currentTiddler")) === this.setTo;
return this.wiki.getTextReference(this.set,this.defaultSetValue,this.getVariable("currentTiddler")) === this.setTo;
};
ButtonWidget.prototype.isPoppedUp = function() {
@ -165,7 +165,7 @@ ButtonWidget.prototype.execute = function() {
this.tooltip = this.getAttribute("tooltip");
this.style = this.getAttribute("style");
this.selectedClass = this.getAttribute("selectedClass");
this.defaultSetValue = this.getAttribute("default");
this.defaultSetValue = this.getAttribute("default","");
this.buttonTag = this.getAttribute("tag");
// Make child widgets
this.makeChildWidgets();