From 2ddc45bf07685db1725f01c54817ccfb77d587f3 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 27 Nov 2020 11:17:03 -0500 Subject: [PATCH] admin/plugins: Simplify jQuery search for plugin actions --- src/static/js/admin/plugins.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/static/js/admin/plugins.js b/src/static/js/admin/plugins.js index 5a5f420ae..9f05179c9 100644 --- a/src/static/js/admin/plugins.js +++ b/src/static/js/admin/plugins.js @@ -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(''); }); updateHandlers();