zoneminder/web/skins/classic/views/js/group.js

22 lines
477 B
JavaScript
Raw Normal View History

2017-05-19 01:50:56 +08:00
function selectMonitors() {
createPopup( '?view=monitorselect&callForm=groupForm&callField=newGroup[MonitorIds]', 'zmMonitors', 'monitorselect' );
}
2017-05-19 01:50:56 +08:00
if ( refreshParent ) {
opener.location.reload(true);
}
2016-03-10 00:34:06 +08:00
function configureButtons( element ) {
2017-05-19 01:50:56 +08:00
if ( canEditGroups ) {
var form = element.form;
var disabled = false;
if ( form.elements['newGroup[Name]'].value == '' ) {
disabled = true;
}
form.saveBtn.disabled = disabled;
2017-05-19 01:50:56 +08:00
}
}
window.focus();