change name of alert url template parameter

This commit is contained in:
Ziver Koc 2018-12-03 18:41:14 +01:00
parent ca42cb71b9
commit 02aaf46f2b
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@
<script> <script>
$(function(){ $(function(){
$(".alert .close").click(function(event){ $(".alert .close").click(function(event){
$.get("{{url}}?action=dismiss&id="+$(this).data("id")); $.get("{{serviceUrl}}?action=dismiss&id="+$(this).data("id"));
}); });
}); });
</script> </script>

View file

@ -62,7 +62,7 @@ public class HalAlertManager implements HttpPage {
} }
Templator tmpl = new Templator(FileUtil.find(TMPL_PATH)); Templator tmpl = new Templator(FileUtil.find(TMPL_PATH));
tmpl.set("url", getUrl()); tmpl.set("serviceUrl", getUrl());
tmpl.set("alerts", alertsClone); tmpl.set("alerts", alertsClone);
return tmpl; return tmpl;
}catch (IOException e){ }catch (IOException e){