Merge pull request #680 from fourplusone/fix/fix-677

Fix #677
This commit is contained in:
John McLear 2012-04-29 10:57:35 -07:00
commit a73192b10d
4 changed files with 24 additions and 5 deletions

View file

@ -280,8 +280,12 @@
var clientVars = {};
(function () {
var baseURL = '../';
var pathComponents = location.pathname.split('/');
// Strip 'p' and the padname from the pathname and set as baseURL
var baseURL = pathComponents.slice(0,pathComponents.length-2).join('/') + '/';
require.setRootURI(baseURL + "javascripts/src");
require.setLibraryURI(baseURL + "javascripts/lib");
require.setGlobalKeyPath("require");