Fix scope order when importing partials with metadata.
Render error when importing wiki pages that do not exist.
这个提交存在于:
父节点
55e2ceccaa
当前提交
9a730a947e
共有 4 个文件被更改,包括 18 次插入 和 34 次删除
|
|
@ -8,22 +8,6 @@
|
|||
</script>
|
||||
<script src="{{ url_for('static', filename='js/editor.js') }}"></script>
|
||||
|
||||
{% if partials %}
|
||||
<script>
|
||||
$(function() {
|
||||
{% for name, value in partials.items() %}
|
||||
{% if name and value %}
|
||||
try {
|
||||
Handlebars.registerPartial({{ name|tojson|safe }}, {{ value|tojson|safe }});
|
||||
} catch (e) {
|
||||
// no data?
|
||||
}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% if config.get('COLLABORATION') %}
|
||||
<script src="{{ url_for('static', filename='js/collaboration/main.js') }}"></script>
|
||||
{% endif %}
|
||||
|
|
|
|||
正在加载…
添加表格
添加链接
在新工单中引用