use $tw.utils.stringifyList

print-window-tiddler
Matt Lauber 2015-11-13 08:06:51 -05:00
rodzic 065b274b98
commit f540be4ac4
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -55,7 +55,7 @@ SelectWidget.prototype.handleChangeEvent = function(event) {
var value = this.getSelectDomNode().value;
} else {
var value = this.getSelectValues()
value = value.map(function(s) { return "[["+s+"]]"}).join(" ");
value = $tw.utils.stringifyList(value);
}
this.wiki.setText(this.selectTitle,this.selectField,this.selectIndex,value);
};
@ -174,4 +174,4 @@ SelectWidget.prototype.refresh = function(changedTiddlers) {
exports.select = SelectWidget;
})();
})();