aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-08-07 14:56:43 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2022-08-07 14:56:43 +0200
commitd495a25022e1b4bd1b3269f7971b959ce731541c (patch)
tree600f30b509569a1eec552f389a244cd1ca695aa5 /server
parentbar code scanner inside direct approve page (diff)
downloadscout-subs-d495a25022e1b4bd1b3269f7971b959ce731541c.tar.gz
scout-subs-d495a25022e1b4bd1b3269f7971b959ce731541c.zip
get base url from settings
Diffstat (limited to 'server')
-rw-r--r--server/templates/server/approve_doc_direct.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/templates/server/approve_doc_direct.html b/server/templates/server/approve_doc_direct.html
index a435b5f..7327b2f 100644
--- a/server/templates/server/approve_doc_direct.html
+++ b/server/templates/server/approve_doc_direct.html
@@ -108,8 +108,8 @@ function send() {
{% if error %}
function loadCode(code) {
if (code.substring(0, 4) == 'http') {
- window.location.replace(code);
- return;
+ code = code.substring(code.length - 6);
+ console.log(code);
}
var currentUrl = window.location.href;