From 8133ac53de9e17fcb7ade3d8f939ccba1a2becd2 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Sun, 5 May 2013 19:03:13 +0000 Subject: [PATCH] small change to ajaxify to ignore href='#', added some design to future features, up for grabs if anybody wants to do them --- public/src/ajaxify.js | 2 ++ public/templates/header.tpl | 10 +++++++++- public/templates/topic.tpl | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index bf80c175f2..90f13142fa 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -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)) { diff --git a/public/templates/header.tpl b/public/templates/header.tpl index 1cdcdcd8fa..aa292c8095 100644 --- a/public/templates/header.tpl +++ b/public/templates/header.tpl @@ -27,7 +27,15 @@