mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-15 01:54:31 -04:00
fix: add AddNewRole button handler in options.js
The Add New Role button was not working because the AddNewRole JavaScript function was missing from options.js. Added the handler function following the same pattern as AddNewUser. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -48,6 +48,12 @@ function AddNewUser(el) {
|
||||
window.location.assign(url);
|
||||
}
|
||||
|
||||
// Manage the Add New Role button
|
||||
function AddNewRole(el) {
|
||||
url = el.getAttribute('data-url');
|
||||
window.location.assign(url);
|
||||
}
|
||||
|
||||
function initPage() {
|
||||
const NewStorageBtn = $j('#NewStorageBtn');
|
||||
const NewServerBtn = $j('#NewServerBtn');
|
||||
|
||||
Reference in New Issue
Block a user