admin/plugins: Use jQuery to build the Update button

plugins-hanging
Richard Hansen 2020-11-27 11:03:42 -05:00 committed by John McLear
parent 2ddc45bf07
commit 6a00d7f8d6
1 changed files with 2 additions and 1 deletions

View File

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