From 6a00d7f8d6336fddde5c6614aea501bd234bc868 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 27 Nov 2020 11:03:42 -0500 Subject: [PATCH] admin/plugins: Use jQuery to build the Update button --- src/static/js/admin/plugins.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/static/js/admin/plugins.js b/src/static/js/admin/plugins.js index 9f05179c9..fc3a951d9 100644 --- a/src/static/js/admin/plugins.js +++ b/src/static/js/admin/plugins.js @@ -221,7 +221,8 @@ $(document).ready(() => { socket.on('results:updatable', (data) => { data.updatable.forEach((pluginName) => { const actions = $(`#installed-plugins > tr.${pluginName} .actions`); - actions.append(''); + actions.append( + $('').addClass('do-update').attr('type', 'button').attr('value', 'Update')); }); updateHandlers(); });