mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-09 23:05:04 +02:00
fixes #1459 animation works fine now
This commit is contained in:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user