fix typo and disable settings btn rather than hide

This commit is contained in:
Andrew Bauer 2021-01-19 10:32:18 -06:00
parent 15514e1ae1
commit e3fdfa659a
1 changed files with 2 additions and 3 deletions

View File

@ -897,14 +897,13 @@ function initPage() {
});
// Manage the SETTINGS button
bindButton('settingsBtn', 'click', null, function onSettingsClick(evt) {
bindButton('#settingsBtn', 'click', null, function onSettingsClick(evt) {
evt.preventDefault();
$j('#settingsModal').modal('show');
});
// Only enable the settings button for local cameras
settingsBtn.prop('disabled', !canView.Control);
if ( monitorType != 'Local' ) settingsBtn.hide();
settingsBtn.prop('disabled', !(canView.Control && monitorType == 'Local'));
// Init the bootstrap-table
if ( monitorType != 'WebSite' ) table.bootstrapTable({icons: icons});