bugfixes
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>org.example</groupId>
|
<groupId>org.example</groupId>
|
||||||
<artifactId>Widerhall</artifactId>
|
<artifactId>Widerhall</artifactId>
|
||||||
<version>0.2.17</version>
|
<version>0.2.18</version>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -135,9 +135,8 @@ public class Web extends TemplateServlet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String archive(HttpServletRequest req, HttpServletResponse resp) {
|
private String archive(HttpServletRequest req, HttpServletResponse resp) {
|
||||||
var domain = req.getParameter(DOMAIN);
|
var list = Util.getMailingList(req);
|
||||||
var prefix = req.getParameter(PREFIX);
|
return loadTemplate(ARCHIVE,Map.of(LIST,list.email()),resp);
|
||||||
return loadTemplate(ARCHIVE,Map.of(DOMAIN,domain,PREFIX,prefix),resp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String confirm(HttpServletRequest req, HttpServletResponse resp) {
|
private String confirm(HttpServletRequest req, HttpServletResponse resp) {
|
||||||
|
|||||||
@@ -21,6 +21,6 @@
|
|||||||
«footer()»
|
«footer()»
|
||||||
</body>
|
</body>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
loadArchive('«data.domain»','«data.prefix»');
|
loadArchive('«data.list»');
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
@@ -40,8 +40,7 @@ function hideList(listEmail){
|
|||||||
$.post('/api/list/hide',{list:listEmail},showListResult,'json');
|
$.post('/api/list/hide',{list:listEmail},showListResult,'json');
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadArchive(domain,prefix){
|
function loadArchive(listEmail){
|
||||||
let listEmail = prefix+'@'+domain;
|
|
||||||
$.get('/api/list/archive?list='+listEmail,showListArchive,'json');
|
$.get('/api/list/archive?list='+listEmail,showListArchive,'json');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user