Skip to content

Commit

Permalink
js fix for updating a list of an action
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Oct 28, 2020
1 parent aa249e7 commit 57adcef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/core/site.js
Expand Up @@ -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},
Expand All @@ -825,6 +826,7 @@ function Message_List() {
selected = Object.values(res.move_count);
}
self.update_after_action(action_type, selected);
updated = true;
}
},
[],
Expand All @@ -833,6 +835,9 @@ function Message_List() {
true
);
}
if (!updated) {
self.update_after_action(action_type, selected);
}
return false;
};

Expand Down

0 comments on commit 57adcef

Please sign in to comment.