Skip to content

Commit

Permalink
* improve document UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Sep 5, 2016
1 parent 7cf983f commit 945aa20
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/js/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
};
var LAST_RELOAD_ANIMATE_ID = 'lastReloadAnimate',
LAST_QUERY_ID = 'LAST_QUERY_ID',
INDEX_JSON = 'docs/index.json',
ICONS_JSON = 'docs/icons.json',
INDEX_JSON = debug ? 'docs/index.json' : 'docs/index.min.json',
ICONS_JSON = debug ? 'docs/icons.json' : 'docs/icons.min.json',
PKG_JSON = 'package.json',
ZUI_JSON = 'zui.json',
ZUI_JSON = debug ? 'docs/zui.json' : 'docs/zui.min.json',
ZUI_CUSTOM_JSON = 'zui.custom.json',
UNDEFINED = undefined,
dataVersion,
Expand Down Expand Up @@ -1997,12 +1997,12 @@
});

// Load index.json
loadData(INDEX_JSON, function(data) {
loadData(INDEX_JSON, function(data, type) {
var firstLoad = !sectionsShowed;

displaySection(data);

if(!firstLoad) {
if(firstLoad) {
var q = getQueryString('q');
if(q) {
setTimeout(function() {
Expand Down

0 comments on commit 945aa20

Please sign in to comment.