From 84d4aeb9e613a70b53d87c62d07bb4c4635290c3 Mon Sep 17 00:00:00 2001 From: Inverle Date: Sat, 10 May 2025 21:06:58 +0200 Subject: Implement loading spinner for marking as favorite/read, read/unread (#7564) * Implement loading spinner for marking as favorite * Ensure that the correct previous icon gets set * Remove delay * Improve compatibility with various parsers Co-authored-by: Alexandre Alapetite * Support multiple icons (top, bottom) * Remove preload for now * Fix CSS, remove !important * Implement read/unread and alt * Ensure correct bookmark icon gets set after error --------- Co-authored-by: Alexandre Alapetite --- app/views/helpers/javascript_vars.phtml | 1 + 1 file changed, 1 insertion(+) (limited to 'app/views/helpers/javascript_vars.phtml') diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml index cadaf9331..159d7ba9b 100644 --- a/app/views/helpers/javascript_vars.phtml +++ b/app/views/helpers/javascript_vars.phtml @@ -78,6 +78,7 @@ echo htmlspecialchars(json_encode([ 'icons' => [ 'read' => rawurlencode(_i('read')), 'unread' => rawurlencode(_i('unread')), + 'spinner' => '../themes/icons/spinner.svg', ], 'extensions' => $extData, ], JSON_UNESCAPED_UNICODE) ?: '', ENT_NOQUOTES, 'UTF-8'); -- cgit v1.2.3