1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-29 16:53:14 +00:00

Fix problem with blank values in action-setfield widget

One manifestation of this problem was that it wasn’t possible to use
the edit template to add a field without specifying a value
This commit is contained in:
Jermolene 2014-11-09 17:15:40 +00:00
parent 9bbd599f5c
commit 5ded01f2c6

View File

@ -58,7 +58,7 @@ Invoke the action associated with this widget
*/
SetFieldWidget.prototype.invokeAction = function(triggeringWidget,event) {
var self = this;
if(this.actionValue) {
if(this.actionField || this.actionIndex) {
this.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue);
}
$tw.utils.each(this.attributes,function(attribute,name) {