mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-22 23:16:53 +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:
parent
318a1cf212
commit
6a3c4d6c91
@ -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);
|
||||
}
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user