(config, name)
| 66 | |
| 67 | |
| 68 | function createSubGalleryItem(config, name) { |
| 69 | var categoryContentDiv = $("<div class='category-content'></div>"); |
| 70 | for (var key in config) { |
| 71 | var configItem = config[key]; |
| 72 | if (window.isLocal && configItem.localIgnore) { |
| 73 | continue; |
| 74 | } |
| 75 | var content = $("<div class='box box-default color-palette-box' id='" + name + '-' + key + "'></div>"); |
| 76 | var title = utils.getLocalPairs(configItem, "name"); |
| 77 | createSubGalleryItemTitle(key, title).appendTo(content); |
| 78 | if (configItem.content) { |
| 79 | createGalleryCharts(configItem.content).appendTo(content); |
| 80 | |
| 81 | } |
| 82 | content.appendTo(categoryContentDiv); |
| 83 | } |
| 84 | return categoryContentDiv; |
| 85 | } |
| 86 | |
| 87 | function createGalleryItemTitle(id, title) { |
| 88 | var menuItemIcon = sideBarIconConfig[id]; |
no test coverage detected