mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-27 01:14:44 +00:00
Take default value in account when index attribute is used (#3099)
This commit is contained in:
parent
c194cec520
commit
028888edff
@ -72,7 +72,7 @@ SelectWidget.prototype.setSelectValue = function() {
|
|||||||
var value = this.selectDefault;
|
var value = this.selectDefault;
|
||||||
// Get the value
|
// Get the value
|
||||||
if(this.selectIndex) {
|
if(this.selectIndex) {
|
||||||
value = this.wiki.extractTiddlerDataItem(this.selectTitle,this.selectIndex);
|
value = this.wiki.extractTiddlerDataItem(this.selectTitle,this.selectIndex,value);
|
||||||
} else {
|
} else {
|
||||||
var tiddler = this.wiki.getTiddler(this.selectTitle);
|
var tiddler = this.wiki.getTiddler(this.selectTitle);
|
||||||
if(tiddler) {
|
if(tiddler) {
|
||||||
|
Loading…
Reference in New Issue
Block a user