diff --git a/libs/webadmin/static/js/events.js b/libs/webadmin/static/js/events.js index 8b9ea8b..042dfe3 100644 --- a/libs/webadmin/static/js/events.js +++ b/libs/webadmin/static/js/events.js @@ -33,7 +33,8 @@ function log_query(data) { data: data }, error: function () { - alert("Something was wrong."); + $("#events").html("
Something was wrong.
"); + $("#events").fadeIn(); }, success: function (response) { let show = "Something was wrong.
"); + $("#groups").fadeIn(); }, success: function (response) { let show = ""; diff --git a/libs/webadmin/static/js/helpers.js b/libs/webadmin/static/js/helpers.js index 093a86f..c190088 100644 --- a/libs/webadmin/static/js/helpers.js +++ b/libs/webadmin/static/js/helpers.js @@ -1,5 +1,6 @@ /*jshint esversion: 6 */ +/** global: object_server */ /* Yuuki_Libs (c) 2020 Star Inc. @@ -26,7 +27,8 @@ $(function(){ task: "get_helpers" }, error: function () { - alert("Something was wrong."); + $("#helpers").html("Something was wrong.
"); + $("#helpers").fadeIn(); }, success: function (response) { let show = ""; diff --git a/libs/webadmin/static/js/index.js b/libs/webadmin/static/js/index.js index 3a4e32c..d90302b 100644 --- a/libs/webadmin/static/js/index.js +++ b/libs/webadmin/static/js/index.js @@ -17,7 +17,7 @@ function init(id, data) { data: data }, error: function () { - alert("Something was wrong."); + $(id).text("Something was wrong."); }, success: function (response) { let ajax_result = response.result; diff --git a/libs/webadmin/static/js/verify.js b/libs/webadmin/static/js/verify.js index 10c7cf3..c8d8139 100644 --- a/libs/webadmin/static/js/verify.js +++ b/libs/webadmin/static/js/verify.js @@ -17,7 +17,8 @@ $(function () { Cookies.set('yuuki_admin', data.session); location.reload(); } else { - $(".status").text("Wrong password") + $(".status").text("Wrong password"); + $(".status").fadeIn(); } } });