kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Merge pull request #1967 from Drakor/fixActionSetField
fixed bug in $action-setfield introduced by #1963print-window-tiddler
commit
ef1cd5f55f
|
@ -61,7 +61,9 @@ SetFieldWidget.prototype.invokeAction = function(triggeringWidget,event) {
|
||||||
var self = this,
|
var self = this,
|
||||||
options = {};
|
options = {};
|
||||||
options.suppressTimestamp = !this.actionTimestamp;
|
options.suppressTimestamp = !this.actionTimestamp;
|
||||||
this.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue,options);
|
if((typeof this.actionField == "string") || (typeof this.actionIndex == "string") || (typeof this.actionValue == "string")) {
|
||||||
|
this.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue,options);
|
||||||
|
}
|
||||||
$tw.utils.each(this.attributes,function(attribute,name) {
|
$tw.utils.each(this.attributes,function(attribute,name) {
|
||||||
if(name.charAt(0) !== "$") {
|
if(name.charAt(0) !== "$") {
|
||||||
self.wiki.setText(self.actionTiddler,name,undefined,attribute,options);
|
self.wiki.setText(self.actionTiddler,name,undefined,attribute,options);
|
||||||
|
|
Ładowanie…
Reference in New Issue