mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-23 10:44:50 +00:00
Merge action-setfield and action-setfields widgets
Less confusion, hopefully.
This commit is contained in:
@@ -57,7 +57,14 @@ SetFieldWidget.prototype.refresh = function(changedTiddlers) {
|
||||
Invoke the action associated with this widget
|
||||
*/
|
||||
SetFieldWidget.prototype.invokeAction = function(triggeringWidget,event) {
|
||||
this.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue);
|
||||
if(this.actionValue) {
|
||||
this.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue);
|
||||
}
|
||||
$tw.utils.each(this.attributes,function(attribute,name) {
|
||||
if(name.charAt(0) !== "$") {
|
||||
self.wiki.setText(self.actionTiddler,name,undefined,attribute);
|
||||
}
|
||||
});
|
||||
return true; // Action was invoked
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user