mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-22 23:16:53 +00:00
Allow empty string as value parameter in SetWidget (#3164)
When occuring in a tiddler named "New Tiddler", the following construct should return ++ instead of +[[New Tiddler]]+ <$set name="myVariable" filter="[all[current]field:title[New Tiddler]]" value=""> +<<myVariable>>+ </$set>
This commit is contained in:
parent
47264c8cd5
commit
f78190ef61
@ -70,7 +70,7 @@ SetWidget.prototype.getValue = function() {
|
|||||||
}
|
}
|
||||||
} else if(this.setFilter) {
|
} else if(this.setFilter) {
|
||||||
var results = this.wiki.filterTiddlers(this.setFilter,this);
|
var results = this.wiki.filterTiddlers(this.setFilter,this);
|
||||||
if(!this.setValue) {
|
if(this.setValue == null) {
|
||||||
var select;
|
var select;
|
||||||
if(this.setSelect) {
|
if(this.setSelect) {
|
||||||
select = parseInt(this.setSelect,10);
|
select = parseInt(this.setSelect,10);
|
||||||
|
Loading…
Reference in New Issue
Block a user