fix typo and disable settings btn rather than hide
This commit is contained in:
parent
15514e1ae1
commit
e3fdfa659a
|
@ -897,14 +897,13 @@ function initPage() {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Manage the SETTINGS button
|
// Manage the SETTINGS button
|
||||||
bindButton('settingsBtn', 'click', null, function onSettingsClick(evt) {
|
bindButton('#settingsBtn', 'click', null, function onSettingsClick(evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
$j('#settingsModal').modal('show');
|
$j('#settingsModal').modal('show');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Only enable the settings button for local cameras
|
// Only enable the settings button for local cameras
|
||||||
settingsBtn.prop('disabled', !canView.Control);
|
settingsBtn.prop('disabled', !(canView.Control && monitorType == 'Local'));
|
||||||
if ( monitorType != 'Local' ) settingsBtn.hide();
|
|
||||||
|
|
||||||
// Init the bootstrap-table
|
// Init the bootstrap-table
|
||||||
if ( monitorType != 'WebSite' ) table.bootstrapTable({icons: icons});
|
if ( monitorType != 'WebSite' ) table.bootstrapTable({icons: icons});
|
||||||
|
|
Loading…
Reference in New Issue