Progresses on #23. Support differnt webdav urls
parent
591d5b3084
commit
1b387d215f
|
@ -89,7 +89,7 @@ Element.prototype.changeToDone = function(error, html) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var toWebDavURL = function(url) {
|
var toWebDavURL = function(url) {
|
||||||
url = url.replace("/", "/webdav/")
|
url = url.replace(baseURL + "/", webdavURL + "/");
|
||||||
return window.location.origin + url
|
return window.location.origin + url
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -908,4 +908,4 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
|
@ -129,8 +129,8 @@
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- SCRIPTS -->
|
<!-- SCRIPTS -->
|
||||||
<!-- User Data and Permissions -->
|
<!-- User Data and Permissions; WebDavURL -->
|
||||||
<script>var user = JSON.parse('{{ Marshal .User }}');</script>
|
<script>var user = JSON.parse('{{ Marshal .User }}'), webdavURL = "{{.Config.WebDavURL}}", baseURL = "{{.Config.BaseURL}}";</script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.3/ace.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.3/ace.js"></script>
|
||||||
<script src="{{ .Config.AbsoluteURL }}/_filemanagerinternal/js/form2js.js"></script>
|
<script src="{{ .Config.AbsoluteURL }}/_filemanagerinternal/js/form2js.js"></script>
|
||||||
<script src="{{ .Config.AbsoluteURL }}/_filemanagerinternal/js/application.js"></script>
|
<script src="{{ .Config.AbsoluteURL }}/_filemanagerinternal/js/application.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue