mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Ignore shadow tiddlers in the syncer
This commit is contained in:
parent
6557ec8e1f
commit
e875de63a9
@ -211,11 +211,14 @@ Syncer.prototype.syncToServer = function(changes) {
|
|||||||
var self = this,
|
var self = this,
|
||||||
now = new Date();
|
now = new Date();
|
||||||
$tw.utils.each(changes,function(change,title,object) {
|
$tw.utils.each(changes,function(change,title,object) {
|
||||||
// Queue a task to sync this tiddler
|
// Ignore the change if it is a shadow tiddler
|
||||||
self.enqueueSyncTask({
|
if((change.deleted && $tw.utils.hop(self.tiddlerInfo,title)) || (!change.deleted && self.wiki.tiddlerExists(title))) {
|
||||||
type: change.deleted ? "delete" : "save",
|
// Queue a task to sync this tiddler
|
||||||
title: title
|
self.enqueueSyncTask({
|
||||||
});
|
type: change.deleted ? "delete" : "save",
|
||||||
|
title: title
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user