]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fill oc_webroot with the expected value
authorBart Visscher <bartv@thisnet.nl>
Thu, 7 Feb 2013 20:13:57 +0000 (21:13 +0100)
committerBart Visscher <bartv@thisnet.nl>
Thu, 7 Feb 2013 20:13:57 +0000 (21:13 +0100)
core/js/js.js

index 80914e954e5e371e8b554081950caa82ee1f2b84..c137f734d919592e57891280be0e06d1104e510a 100644 (file)
@@ -8,6 +8,7 @@
 var oc_debug;
 var oc_webroot;
 var oc_requesttoken;
+oc_webroot = oc_webroot || location.pathname.substr(0, location.pathname.lastIndexOf('/'));
 if (oc_debug !== true || typeof console === "undefined" || typeof console.log === "undefined") {
        if (!window.console) {
                window.console = {};