2017-05-19 01:50:56 +08:00
|
|
|
function selectMonitors() {
|
|
|
|
createPopup( '?view=monitorselect&callForm=groupForm&callField=newGroup[MonitorIds]', 'zmMonitors', 'monitorselect' );
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
|
|
|
|
2017-05-19 01:50:56 +08:00
|
|
|
if ( refreshParent ) {
|
|
|
|
opener.location.reload(true);
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
|
|
|
|
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;
|
2017-10-01 02:19:32 +08:00
|
|
|
var disabled = false;
|
|
|
|
|
|
|
|
if ( form.elements['newGroup[Name]'].value == '' ) {
|
|
|
|
disabled = true;
|
2019-01-18 23:00:55 +08:00
|
|
|
}
|
2017-10-01 02:19:32 +08:00
|
|
|
form.saveBtn.disabled = disabled;
|
2017-05-19 01:50:56 +08:00
|
|
|
}
|
2016-03-09 23:43:44 +08:00
|
|
|
}
|
|
|
|
|
2008-07-14 21:54:50 +08:00
|
|
|
window.focus();
|