1
0
mirror of https://github.com/MatMoul/quickdial-webext.git synced 2024-12-23 15:36:12 +00:00

Bug: Custom image are not displayed in properties window

This commit is contained in:
MatMoul 2017-10-15 00:10:53 +02:00
parent b91255375f
commit d3cc6cf68f

View File

@ -17,9 +17,12 @@ app.init = function(){
switch(node.type){ switch(node.type){
case app.GridNodes.GridNodeType.folder: case app.GridNodes.GridNodeType.folder:
Url.parentNode.parentNode.style.display = 'none'; Url.parentNode.parentNode.style.display = 'none';
if(node.image) Image = node.image; if(node.image){
else Image = app.settings.grid.folderIcon; if(node.image.indexOf('url(')>0) Image = node.image;
ImagePreview.style.backgroundImage = 'url(' + Image + ')'; else Image = 'url(' + node.image + ')';
} else Image = app.settings.grid.folderIcon;
ImagePreview.style.backgroundImage = Image;
break; break;
case app.GridNodes.GridNodeType.bookmark: case app.GridNodes.GridNodeType.bookmark:
Url.value = node.url; Url.value = node.url;