mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: focus on save button on plugin activation
This commit is contained in:
@@ -79,6 +79,12 @@ define('admin/extend/plugins', [
|
|||||||
callback: toggleActivate,
|
callback: toggleActivate,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onShown: function () {
|
||||||
|
const saveEl = this.querySelector('button.btn-primary');
|
||||||
|
if (saveEl) {
|
||||||
|
saveEl.focus();
|
||||||
|
}
|
||||||
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user