From 113d72f59f15e30a1b103f2a22ceb294f429f846 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 11 Dec 2023 04:26:24 +0000 Subject: [PATCH] Frio: perform item update after activity --- view/js/main.js | 5 +++++ view/theme/frio/js/theme.js | 1 + 2 files changed, 6 insertions(+) diff --git a/view/js/main.js b/view/js/main.js index c55f85d917..0da6c1df10 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -641,6 +641,11 @@ function liveUpdate(src) { }); } +function updateItem(itemNo) { + force_update = true; + update_item = itemNo; +} + function imgbright(node) { $(node).removeClass("drophide").addClass("drop"); } diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index b138668c45..83cc15751a 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -865,6 +865,7 @@ function doActivityItemAction(ident, verb, un) { $('button[id^=shareMenuOptions-' + ident.toString() + ']').addClass('active'); } } + updateItem(ident.toString()); } else { /* server-response was not ok. Database-problems or some changes in * data? -- 2.39.5