From 57adcefcd9861d0c21a306042ce2de74e752a63c Mon Sep 17 00:00:00 2001 From: Jason Munro Date: Wed, 28 Oct 2020 14:47:35 -0500 Subject: [PATCH] js fix for updating a list of an action --- modules/core/site.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/core/site.js b/modules/core/site.js index 494442771..cf2bb1fa1 100644 --- a/modules/core/site.js +++ b/modules/core/site.js @@ -810,6 +810,7 @@ function Message_List() { } }); if (selected.length > 0) { + var updated = false; Hm_Ajax.request( [{'name': 'hm_ajax_hook', 'value': 'ajax_message_action'}, {'name': 'action_type', 'value': action_type}, @@ -825,6 +826,7 @@ function Message_List() { selected = Object.values(res.move_count); } self.update_after_action(action_type, selected); + updated = true; } }, [], @@ -833,6 +835,9 @@ function Message_List() { true ); } + if (!updated) { + self.update_after_action(action_type, selected); + } return false; };