Skip to content

Commit 3792442

Browse files
committed
【fix】优化例子 review by liqian
1 parent 0cc161d commit 3792442

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

examples/js/example.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ function createSubGalleryItem(config, name) {
6767
var categoryContentDiv = $("<div class='category-content'></div>");
6868
for (var key in config) {
6969
var configItem = config[key];
70+
if (window.isLocal && configItem.localIgnore) {
71+
continue;
72+
}
7073
var content = $("<div class='box box-default color-palette-box' id='" + name + '-' + key + "'></div>");
7174
var title = utils.getLocalPairs(configItem, "name");
7275
createSubGalleryItemTitle(key, title).appendTo(content);

examples/js/sidebar.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ function createSideBarSecondMenu(config, name) {
124124
var ul = $("<ul class='treeview-menu second-menu '></ul>");
125125
for (var key in config) {
126126
var configItem = config[key];
127+
if (window.isLocal && configItem.localIgnore) {
128+
continue;
129+
}
127130
var title = utils.getLocalPairs(configItem, "name") || "【empty title】";
128131
var li = $("<li class='menuTitle ' id='" + key + "' title='" + title + "'></li>");
129132
li.appendTo(ul);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy