small change to ajaxify to ignore href='#', added some design to future features, up for grabs if anybody wants to do them

v1.18.x
psychobunny 12 years ago
parent b47f292eaa
commit 8133ac53de

@ -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">

Loading…
Cancel
Save