Moved from demo to root
This commit is contained in:
@@ -16,7 +16,10 @@ var Ajax = {
|
||||
}
|
||||
return false;
|
||||
} else {
|
||||
var display_name = name.split('+').join(' ');
|
||||
yaCounter7596904.hit('/artist/'+ name +'/', display_name, Ajax.getAnchor());
|
||||
Ajax.setArchor('/artist/'+ name +'/');
|
||||
Ajax.setTitle(display_name);
|
||||
Pages.renderArtist(data);
|
||||
beathaven.redrawScrollbar();
|
||||
}
|
||||
@@ -24,8 +27,10 @@ var Ajax = {
|
||||
},
|
||||
|
||||
loadSearchPage: function() {
|
||||
Ajax.setArchor('/search/');
|
||||
$.get('/demo/search.html', function(data){
|
||||
yaCounter7596904.hit('/search/', 'Artist Search', Ajax.getAnchor());
|
||||
Ajax.setArchor('/search/');
|
||||
Ajax.setTitle('Artist Search');
|
||||
$('#data-container .inner').html(data);
|
||||
beathaven.redrawScrollbar();
|
||||
$('#search_field').autocomplete({
|
||||
@@ -62,6 +67,10 @@ var Ajax = {
|
||||
getAnchor: function() {
|
||||
return window.location.hash.substring(1);
|
||||
},
|
||||
|
||||
setTitle: function(title) {
|
||||
document.title = title +' @ BeatHaven';
|
||||
},
|
||||
|
||||
detectPage: function() {
|
||||
if (m = Ajax.getAnchor().match(/\/artist\/(.+)\//)) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
$(function(){
|
||||
if (document.location.host != 'beathaven.org' && document.location.host != 'localhost') {
|
||||
document.location.href = 'http://beathaven.org/demo/';
|
||||
document.location.href = 'http://beathaven.org/'+ document.location.hash;
|
||||
}
|
||||
beathaven.init();
|
||||
$(window).resize(beathaven.adjustSizes)
|
||||
|
||||
Reference in New Issue
Block a user