mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 23:45:45 +01:00
small change to ajaxify to ignore href='#', added some design to future features, up for grabs if anybody wants to do them
This commit is contained in:
@@ -61,6 +61,8 @@ var ajaxify = {};
|
||||
}
|
||||
|
||||
ajaxify.onclick = function(ev) {
|
||||
if (this.href == window.location.href + "#") return;
|
||||
console.log(this.href);
|
||||
var url = this.href.replace(rootUrl +'/', '');
|
||||
|
||||
if (ajaxify.go(url)) {
|
||||
|
||||
@@ -27,7 +27,15 @@
|
||||
</button>
|
||||
<div class="nav-collapse collapse">
|
||||
<ul class="nav">
|
||||
<li class="active"><a href="/">Forum</a></li>
|
||||
<li id="fat-menu" class="active dropdown">
|
||||
<a href="#" id="topic_dropdown" role="button" class="dropdown-toggle" data-toggle="dropdown">Topics <span class="badge badge-inverse">3</span></a>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="topic_dropdown">
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">latest post</a></li>
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">another latest post</a></li>
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">moar latest posts</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<ul class="nav pull-right" id="right-menu">
|
||||
<li><a href="/account" id="user_label"></a></li>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<li class="active">{topic_name}</li>
|
||||
</ul>
|
||||
|
||||
psychobunny, null, and 2 guests are browsing this thread.
|
||||
<small>psychobunny, null, and 2 guests are browsing this thread</small><br />
|
||||
</div>
|
||||
|
||||
<ul id="post-container" class="post-container container">
|
||||
|
||||
Reference in New Issue
Block a user