diff --git a/editor/public/javascripts/occ_editor.js b/editor/public/javascripts/occ_editor.js index cf1adfd3..c95a72d6 100755 --- a/editor/public/javascripts/occ_editor.js +++ b/editor/public/javascripts/occ_editor.js @@ -407,13 +407,18 @@ } function build_navigator_list(list) { - var ul = $(".filesystem").html(''); + var item_icon, ul = $(".filesystem").html(''); $.each(list, function(i, item) { + if (item.type === 'file') { + item_icon = ""; + } else { + item_icon = ""; + } if (i > 0) { item.id = i + "-item"; $("") .data( "file", item ) - .append("" + item.name + "") + .append("" + item.name + item_icon) .appendTo(ul); } });