liquid_feedback_frontend
changeset 1647:123eb46b4d3e
Fixed base url for fetch request
author | bsw |
---|---|
date | Wed Feb 10 00:30:53 2021 +0100 (2021-02-10) |
parents | 9cf1f17ac730 |
children | 1335379a85d2 |
files | app/main/_layout/default.html static/js/xhr.js |
line diff
1.1 --- a/app/main/_layout/default.html Wed Feb 10 00:30:17 2021 +0100 1.2 +++ b/app/main/_layout/default.html Wed Feb 10 00:30:53 2021 +0100 1.3 @@ -7,6 +7,7 @@ 1.4 <link rel="stylesheet" type="text/css" media="screen" href="__BASEURL__/style/style.css" /> 1.5 <link rel="stylesheet" type="text/css" media="screen" href="__BASEURL__/static/lf4.css" /> 1.6 <!-- WEBMCP SLOTNODIV html_head --> 1.7 + <script type="text/javascript">var baseURL = "__BASEURL__";</script> 1.8 <script type="text/javascript">jsFail = true;</script> 1.9 <![if !IE]> 1.10 <script type="text/javascript">jsFail = false;</script>
2.1 --- a/static/js/xhr.js Wed Feb 10 00:30:17 2021 +0100 2.2 +++ b/static/js/xhr.js Wed Feb 10 00:30:53 2021 +0100 2.3 @@ -19,7 +19,7 @@ 2.4 data.append("issue_id", issueId); 2.5 data.append("interested", interested); 2.6 2.7 - fetch("/lf/interest/xhr_update", { 2.8 + fetch(baseURL + "/interest/xhr_update", { 2.9 method : "POST", 2.10 body: data 2.11 }).then(