mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
admin/plugins: Simplify jQuery search for plugin actions
This commit is contained in:
parent
973644c7dd
commit
2ddc45bf07
1 changed files with 1 additions and 2 deletions
|
@ -220,8 +220,7 @@ $(document).ready(() => {
|
||||||
|
|
||||||
socket.on('results:updatable', (data) => {
|
socket.on('results:updatable', (data) => {
|
||||||
data.updatable.forEach((pluginName) => {
|
data.updatable.forEach((pluginName) => {
|
||||||
const $row = $(`#installed-plugins > tr.${pluginName}`);
|
const actions = $(`#installed-plugins > tr.${pluginName} .actions`);
|
||||||
const actions = $row.find('.actions');
|
|
||||||
actions.append('<input class="do-update" type="button" value="Update" />');
|
actions.append('<input class="do-update" type="button" value="Update" />');
|
||||||
});
|
});
|
||||||
updateHandlers();
|
updateHandlers();
|
||||||
|
|
Loading…
Reference in a new issue