diff --git a/libs/webadmin/static/js/events.js b/libs/webadmin/static/js/events.js
index 21dddf2..1a95ec0 100644
--- a/libs/webadmin/static/js/events.js
+++ b/libs/webadmin/static/js/events.js
@@ -16,12 +16,12 @@ var events = [
];
function format2html(title, context) {
- return "
" +
- "
" +
- "" + title + "" +
- context +
- "
" +
- "
";
+ return `
+
+ ${title}
+ ${context}
+
+
`;
}
function log_query(data) {
diff --git a/libs/webadmin/static/js/groups.js b/libs/webadmin/static/js/groups.js
index 09b105b..95c3ba8 100644
--- a/libs/webadmin/static/js/groups.js
+++ b/libs/webadmin/static/js/groups.js
@@ -10,13 +10,12 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
function format2html(title, context) {
- return "
`;
}
$(function () {
diff --git a/libs/webadmin/static/js/helpers.js b/libs/webadmin/static/js/helpers.js
index c190088..dd3309c 100644
--- a/libs/webadmin/static/js/helpers.js
+++ b/libs/webadmin/static/js/helpers.js
@@ -10,16 +10,16 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
function format2html(title, context) {
- return "
" +
- "" +
- "
" +
- "" + title + "" +
- context +
- "
" +
- "
";
+ return `
+
+
+ ${title}
+ ${context}
+
+
`;
}
-$(function(){
+$(function () {
$.ajax({
url: "/api",
type: "POST",
diff --git a/libs/webadmin/static/js/index.js b/libs/webadmin/static/js/index.js
index 9332121..b0aae5a 100644
--- a/libs/webadmin/static/js/index.js
+++ b/libs/webadmin/static/js/index.js
@@ -23,7 +23,7 @@ function init(id, data) {
let ajax_result = response.result;
if (ajax_result.length) {
$(id).text(ajax_result[ajax_result.length - 1]);
- } else {
+ } else {
$(id).text("Nothing");
}
}
diff --git a/libs/webadmin/static/js/settings.js b/libs/webadmin/static/js/settings.js
index ee31eee..def88d6 100644
--- a/libs/webadmin/static/js/settings.js
+++ b/libs/webadmin/static/js/settings.js
@@ -1,3 +1,11 @@
+/*
+Yuuki_Libs
+(c) 2020 Star Inc.
+This Source Code Form is subject to the terms of the Mozilla Public
+License, v. 2.0. If a copy of the MPL was not distributed with this
+file, You can obtain one at http://mozilla.org/MPL/2.0/.
+*/
+
function shutdown() {
$(".container").html("