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) {
var self = this,
options = {};
options.timestamp = this.actionTimestamp;
options.suppressTimestamp = !this.actionTimestamp;
if(typeof this.actionValue === "string") {
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) {
options = options || {};
var creationFields = options.timestamp ? this.getCreationFields() : {},
modificationFields = options.timestamp ? this.getModificationFields() : {};
var creationFields = options.suppressTimestamp ? {} : this.getCreationFields(),
modificationFields = options.suppressTimestamp ? {} : this.getModificationFields();
// Check if it is a reference to a tiddler field
if(index) {
var data = this.getTiddlerData(title,Object.create(null));