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:
psychobunny
2013-05-05 19:03:13 +00:00
parent b47f292eaa
commit 8133ac53de
3 changed files with 12 additions and 2 deletions

View File

@@ -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)) {