mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2024-12-23 07:26:11 +00:00
Bug: Convert separator to empty cell
This commit is contained in:
parent
beb52273a2
commit
72ab3e5f6b
@ -436,13 +436,15 @@ app.GridNodes.sync = function(gridNode, rootPath, callback){ // Sync GridNodes w
|
||||
function syncNode(gridNode, bookmarkItem){
|
||||
gridNode.id = bookmarkItem.id;
|
||||
gridNode.title = bookmarkItem.title;
|
||||
if(bookmarkItem.url){
|
||||
switch(bookmarkItem.type){
|
||||
case 'bookmark':
|
||||
gridNode.type = app.GridNodes.GridNodeType.bookmark;
|
||||
if(gridNode.url != bookmarkItem.url){
|
||||
gridNode.url = bookmarkItem.url;
|
||||
delete gridNode.image;
|
||||
}
|
||||
} else if(bookmarkItem.children){
|
||||
break;
|
||||
case 'folder':
|
||||
gridNode.type = app.GridNodes.GridNodeType.folder;
|
||||
var EmptyNodes = [];
|
||||
if(! gridNode.children) gridNode.children = [];
|
||||
@ -484,8 +486,10 @@ app.GridNodes.sync = function(gridNode, rootPath, callback){ // Sync GridNodes w
|
||||
syncNode(childGridNode, child);
|
||||
}
|
||||
EmptyNodes.length = 0;
|
||||
} else {
|
||||
break;
|
||||
default:
|
||||
gridNode.type = app.GridNodes.GridNodeType.empty;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user