summaryrefslogtreecommitdiff
path: root/public/views
diff options
context:
space:
mode:
authorWu Cheng-Han2016-08-15 11:27:32 +0800
committerWu Cheng-Han2016-08-15 11:27:32 +0800
commitb4ad011dc1cec22b088578ca019f76c0c9ba4612 (patch)
treecc879b775b9538bbfe2a3cbdaa4c23cb1d20ebb8 /public/views
parenta013c9d3bc0eb98c935e80bdb694c1a1cf7bd4c4 (diff)
Fix toc id naming to avoid overlap with user toc
Diffstat (limited to '')
-rw-r--r--public/views/body.ejs4
-rw-r--r--public/views/html.hbs8
-rw-r--r--public/views/pretty.ejs4
3 files changed, 8 insertions, 8 deletions
diff --git a/public/views/body.ejs b/public/views/body.ejs
index d2010b4a..acf929ad 100644
--- a/public/views/body.ejs
+++ b/public/views/body.ejs
@@ -29,11 +29,11 @@
<a id="tocLabel" class="ui-toc-label btn btn-default" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" title="Table of content">
<i class="fa fa-bars"></i>
</a>
- <ul id="toc" class="ui-toc-dropdown dropdown-menu" aria-labelledby="tocLabel">
+ <ul id="ui-toc" class="ui-toc-dropdown dropdown-menu" aria-labelledby="tocLabel">
</ul>
</div>
</div>
- <div id="toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="top:51px;display:none;"></div>
+ <div id="ui-toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="top:51px;display:none;"></div>
</div>
</div>
<!-- clipboard modal -->
diff --git a/public/views/html.hbs b/public/views/html.hbs
index 08b6f4ff..7213ff9f 100644
--- a/public/views/html.hbs
+++ b/public/views/html.hbs
@@ -39,13 +39,13 @@
<a id="tocLabel" class="ui-toc-label btn btn-default" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" title="Table of content">
<i class="fa fa-bars"></i>
</a>
- <ul id="toc" class="ui-toc-dropdown dropdown-menu" aria-labelledby="tocLabel">
- {{{toc}}}
+ <ul id="ui-toc" class="ui-toc-dropdown dropdown-menu" aria-labelledby="tocLabel">
+ {{{ui-toc}}}
</ul>
</div>
</div>
- <div id="toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="top:17px;display:none;" {{{lang}}} {{{dir}}}>
- {{{toc-affix}}}
+ <div id="ui-toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="top:17px;display:none;" {{{lang}}} {{{dir}}}>
+ {{{ui-toc-affix}}}
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" defer></script>
diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs
index 3afb2a1a..1de3610c 100644
--- a/public/views/pretty.ejs
+++ b/public/views/pretty.ejs
@@ -67,11 +67,11 @@
<a id="tocLabel" class="ui-toc-label btn btn-default" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" title="Table of content">
<i class="fa fa-bars"></i>
</a>
- <ul id="toc" class="ui-toc-dropdown dropdown-menu" aria-labelledby="tocLabel">
+ <ul id="ui-toc" class="ui-toc-dropdown dropdown-menu" aria-labelledby="tocLabel">
</ul>
</div>
</div>
- <div id="toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="display:none;"></div>
+ <div id="ui-toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="display:none;"></div>
<% if(typeof disqus !== 'undefined' && disqus) { %>
<div class="container-fluid" style="max-width: 758px; margin-bottom: 40px;">
<%- include disqus %>