Fixes index page.

This commit is contained in:
Lars Jung 2012-09-18 01:29:22 +02:00
parent b649cd1519
commit 4e6c446ce4
2 changed files with 3 additions and 4 deletions

View file

@ -77,5 +77,4 @@ html.no-js( lang="en" )
span.right
span.center
script( src="config.js" )
script( src="js/scripts.js" )

View file

@ -22,7 +22,7 @@
// @include "inc/**/*.js"
$.ajax({
url: $('script[src$="/js/scripts.js"]').attr('src').replace(/\/js\/scripts.js$/, '/config.json'),
url: $('script[src$="scripts.js"]').attr('src').replace(/scripts.js$/, '../config.json'),
complete: function (data) {
var config = JSON.parse(data.responseText.replace(/\/\*[\s\S]*?\*\/|\/\/.*?(\n|$)/g, ''));
@ -42,7 +42,7 @@
modulejs.require($('body').attr('id'));
});
}}
);
}
});
}(jQuery));