This commit is contained in:
SuperSonic 2020-02-08 15:05:09 +08:00
parent aacec023b5
commit 102739a400
5 changed files with 11 additions and 5 deletions

View file

@ -33,7 +33,8 @@ function log_query(data) {
data: data
},
error: function () {
alert("Something was wrong.");
$("#events").html("<p class=\"pt-3\">Something was wrong.</p>");
$("#events").fadeIn();
},
success: function (response) {
let show = "<h6 class=\"border-bottom border-gray pb-2 mb-0\">" + data + "</h6>";

View file

@ -1,5 +1,6 @@
/*jshint esversion: 6 */
/** global: object_server */
/*
Yuuki_Libs
(c) 2020 Star Inc.
@ -26,7 +27,8 @@ $(function () {
task: "get_groups_joined"
},
error: function () {
alert("Something was wrong.");
$("#groups").html("<p class=\"pt-3\">Something was wrong.</p>");
$("#groups").fadeIn();
},
success: function (response) {
let show = "";

View file

@ -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("<p class=\"pt-3\">Something was wrong.</p>");
$("#helpers").fadeIn();
},
success: function (response) {
let show = "";

View file

@ -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;

View file

@ -17,7 +17,8 @@ $(function () {
Cookies.set('yuuki_admin', data.session);
location.reload();
} else {
$(".status").text("Wrong password")
$(".status").text("Wrong password");
$(".status").fadeIn();
}
}
});