提交 2d562590 编写于 作者: C Catouse

* fix openSection method.

上级 0ff5c7ab
......@@ -933,10 +933,16 @@
};
var openSection = function(section, topic) {
if(debug) console.log('openSection', section, topic);
section = section || $choosedSection;
var $section;
if($.isArray(section)) {
if(!section[0]) {
if(debug) console.error("Open section failed: can't find the section with id " + section.join('-'));
return;
}
var docIndex = dataset[INDEX_JSON].data;
if(docIndex && section.length > 1) {
var sectionId = section[1];
......@@ -954,7 +960,7 @@
}
}
if(!ok) {
console.error("Open section failed: can't find the section with id " + section.join('-'));
if(debug) console.error("Open section failed: can't find the section with id " + section.join('-'));
return;
}
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册