admin/plugins: Use jQuery to build the Update button

This commit is contained in:
Richard Hansen 2020-11-27 11:03:42 -05:00 committed by John McLear
parent 2ddc45bf07
commit 6a00d7f8d6

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();
});