admin/plugins: Simplify jQuery search for plugin actions

This commit is contained in:
Richard Hansen 2020-11-27 11:17:03 -05:00 committed by John McLear
parent 973644c7dd
commit 2ddc45bf07

View file

@ -220,8 +220,7 @@ $(document).ready(() => {
socket.on('results:updatable', (data) => {
data.updatable.forEach((pluginName) => {
const $row = $(`#installed-plugins > tr.${pluginName}`);
const actions = $row.find('.actions');
const actions = $(`#installed-plugins > tr.${pluginName} .actions`);
actions.append('<input class="do-update" type="button" value="Update" />');
});
updateHandlers();