prevent ajaxify from working on links with "target" set. added rss button as well as social icons to category listing.

This commit is contained in:
psychobunny
2013-06-04 13:40:38 -04:00
parent 9029ed2663
commit d4e4d17c5c
2 changed files with 11 additions and 1 deletions

View File

@@ -76,6 +76,8 @@ var ajaxify = {};
if (this.href == window.location.href + "#") return;
var url = this.href.replace(rootUrl +'/', '');
if (this.target !== '') return;
if (!ev.ctrlKey && ev.which === 1) {
if (ajaxify.go(url)) {
ev.preventDefault();

View File

@@ -47,6 +47,14 @@
<button id="new_post" class="btn btn-primary btn-large {show_category_features}">New Topic</button>
</div>
<div class="span3 {show_category_features} category-sidebar">
<div class="sidebar-block img-polaroid">
<div class="block-header">
<a target="_blank" href="../{category_id}.rss"><i class="icon-rss-sign icon-2x"></i></a>&nbsp;
<i class="icon-facebook-sign icon-2x"></i>&nbsp;
<i class="icon-twitter-sign icon-2x"></i>&nbsp;
<i class="icon-google-plus-sign icon-2x"></i>&nbsp;
</div>
</div>
<div class="sidebar-block img-polaroid">
<div class="block-header">
Recent Replies