1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-23 07:26:54 +00:00

Flip logic for suppressing timestamps

Fixing a mistake from the earlier commits, so that the default remains
that the timestamps are applied.
This commit is contained in:
Jermolene 2015-08-09 11:09:02 +01:00
parent 318a1cf212
commit 6a3c4d6c91
2 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ Invoke the action associated with this widget
SetFieldWidget.prototype.invokeAction = function(triggeringWidget,event) { SetFieldWidget.prototype.invokeAction = function(triggeringWidget,event) {
var self = this, var self = this,
options = {}; options = {};
options.timestamp = this.actionTimestamp; options.suppressTimestamp = !this.actionTimestamp;
if(typeof this.actionValue === "string") { if(typeof this.actionValue === "string") {
this.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue,options); this.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue,options);
} }

View File

@ -60,8 +60,8 @@ exports.setTextReference = function(textRef,value,currTiddlerTitle) {
exports.setText = function(title,field,index,value,options) { exports.setText = function(title,field,index,value,options) {
options = options || {}; options = options || {};
var creationFields = options.timestamp ? this.getCreationFields() : {}, var creationFields = options.suppressTimestamp ? {} : this.getCreationFields(),
modificationFields = options.timestamp ? this.getModificationFields() : {}; modificationFields = options.suppressTimestamp ? {} : this.getModificationFields();
// Check if it is a reference to a tiddler field // Check if it is a reference to a tiddler field
if(index) { if(index) {
var data = this.getTiddlerData(title,Object.create(null)); var data = this.getTiddlerData(title,Object.create(null));