setting applicationName client side

email-send-options-from-account
Moe 2021-10-23 23:34:41 -07:00
parent 351bc87b24
commit 70f76e2a46
2 changed files with 2 additions and 1 deletions

View File

@ -249,7 +249,7 @@ function downloadMonitorConfigurationsToDisk(monitorIds){
$('#temp').html('<a></a>')
.find('a')
.attr('href',dataStr)
.attr('download',`Shinobi_Monitors_${$user.ke}_${new Date()}.json`)
.attr('download',`${applicationName}_Monitors_${$user.ke}_${new Date()}.json`)
[0].click()
}

View File

@ -79,6 +79,7 @@
</style>
<script src="<%-window.libURL%>libs/js/jquery.min.js"></script>
</head>
<script>applicationName = <%- lang.Shinobi %></script>
<script>$user = <%- JSON.stringify($user) %></script>
<script>lang = <%- JSON.stringify(lang) %></script>
<script>definitions = <%- JSON.stringify(define) %></script>