fixes #1459 animation works fine now

This commit is contained in:
Matthieu Leproux
2021-08-09 12:00:20 +02:00
parent 13143602b6
commit 0386d0cd52
2 changed files with 5 additions and 3 deletions
+4 -3
View File
@@ -13,8 +13,9 @@ function displayResponse(domElem, values, mDivs, mValues) {
}
$(document).ready(function () {
$(".refresh-cache-size").on("click", function test () {
$(this).children("span").addClass("spin6").removeClass("icon-arrows-cw")
$(".refresh-cache-size").on("click", function () {
$(this).find(".refresh-icon").addClass("animate-spin");
console.log("lelelele");
return new Promise((res, rej) => {
jQuery.ajax({
@@ -43,7 +44,7 @@ $(document).ready(function () {
displayResponse(domElemToRefresh , domElemValues, multipleSizes, multipleSizesValues);
$(this).children("span").addClass("icon-arrows-cw").removeClass("spin6");
$(".animate-spin").removeClass("animate-spin");
} else {
rej(data);
@@ -1,6 +1,7 @@
{combine_script id='common' load='footer' path='admin/themes/default/js/common.js'}
{combine_script id='jquery.confirm' load='footer' require='jquery' path='themes/default/js/plugins/jquery-confirm.min.js'}
{combine_css path="themes/default/js/plugins/jquery-confirm.min.css"}
{combine_css path="admin/themes/default/fontello/css/animation.css" order=10} {* order 10 is required, see issue 1080 *}
{footer_script}
const confirm_msg = '{"Yes, I am sure"|@translate}';
const cancel_msg = "{"No, I have changed my mind"|@translate}";