Added setRootPath

This commit is contained in:
Dennis Eichhorn 2017-05-31 10:20:03 +02:00 committed by GitHub
parent 70fba3147d
commit 278c35d7d2

View File

@ -185,6 +185,12 @@
// todo: needs + rootPath at the end but how to define? maybe look at inline js uri is defined there?!
this.base = this.scheme + '://' + this.host;
};
jsOMS.Uri.Http.prototype.setRootPath = function(rootPath)
{
this.root = rootPath;
this.set(this.uri);
};
jsOMS.Uri.Http.prototype.getBase = function()
{
@ -235,4 +241,4 @@
{
return this.path;
}
}(window.jsOMS = window.jsOMS || {}));
}(window.jsOMS = window.jsOMS || {}));