mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 15:42:59 +00:00 
			
		
		
		
	| @@ -135,7 +135,7 @@ Syncer.prototype.updateDirtyStatus = function() { | |||||||
| /* | /* | ||||||
| Save an incoming tiddler in the store, and updates the associated tiddlerInfo | Save an incoming tiddler in the store, and updates the associated tiddlerInfo | ||||||
| */ | */ | ||||||
| Syncer.prototype.storeTiddler = function(tiddlerFields) { | Syncer.prototype.storeTiddler = function(tiddlerFields,hasBeenLazyLoaded) { | ||||||
| 	// Save the tiddler | 	// Save the tiddler | ||||||
| 	var tiddler = new $tw.Tiddler(this.wiki.getTiddler(tiddlerFields.title),tiddlerFields); | 	var tiddler = new $tw.Tiddler(this.wiki.getTiddler(tiddlerFields.title),tiddlerFields); | ||||||
| 	this.wiki.addTiddler(tiddler); | 	this.wiki.addTiddler(tiddler); | ||||||
| @@ -144,7 +144,7 @@ Syncer.prototype.storeTiddler = function(tiddlerFields) { | |||||||
| 		revision: tiddlerFields.revision, | 		revision: tiddlerFields.revision, | ||||||
| 		adaptorInfo: this.syncadaptor.getTiddlerInfo(tiddler), | 		adaptorInfo: this.syncadaptor.getTiddlerInfo(tiddler), | ||||||
| 		changeCount: this.wiki.getChangeCount(tiddlerFields.title), | 		changeCount: this.wiki.getChangeCount(tiddlerFields.title), | ||||||
| 		hasBeenLazyLoaded: true | 		hasBeenLazyLoaded: hasBeenLazyLoaded !== undefined ? hasBeenLazyLoaded : true | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| @@ -218,7 +218,7 @@ Syncer.prototype.syncFromServer = function() { | |||||||
| 						}); | 						}); | ||||||
| 					} else { | 					} else { | ||||||
| 						// Load the skinny version of the tiddler | 						// Load the skinny version of the tiddler | ||||||
| 						self.storeTiddler(tiddlerFields); | 						self.storeTiddler(tiddlerFields,false); | ||||||
| 					} | 					} | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| @@ -499,7 +499,7 @@ Syncer.prototype.dispatchTask = function(task,callback) { | |||||||
| 			} | 			} | ||||||
| 			// Store the tiddler | 			// Store the tiddler | ||||||
| 			if(tiddlerFields) { | 			if(tiddlerFields) { | ||||||
| 				self.storeTiddler(tiddlerFields); | 				self.storeTiddler(tiddlerFields,true); | ||||||
| 			} | 			} | ||||||
| 			// Invoke the callback | 			// Invoke the callback | ||||||
| 			callback(null); | 			callback(null); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jermolene
					Jermolene