mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-17 14:50:57 -08:00
Ignore shadow tiddlers in the syncer
This commit is contained in:
parent
6557ec8e1f
commit
e875de63a9
1 changed files with 8 additions and 5 deletions
|
|
@ -211,11 +211,14 @@ Syncer.prototype.syncToServer = function(changes) {
|
|||
var self = this,
|
||||
now = new Date();
|
||||
$tw.utils.each(changes,function(change,title,object) {
|
||||
// Queue a task to sync this tiddler
|
||||
self.enqueueSyncTask({
|
||||
type: change.deleted ? "delete" : "save",
|
||||
title: title
|
||||
});
|
||||
// Ignore the change if it is a shadow tiddler
|
||||
if((change.deleted && $tw.utils.hop(self.tiddlerInfo,title)) || (!change.deleted && self.wiki.tiddlerExists(title))) {
|
||||
// Queue a task to sync this tiddler
|
||||
self.enqueueSyncTask({
|
||||
type: change.deleted ? "delete" : "save",
|
||||
title: title
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue