put back code to switch to add_monitors

This commit is contained in:
Isaac Connor 2018-01-12 08:11:25 -08:00
parent 95c3c26eda
commit ff9f43b5a1
1 changed files with 5 additions and 2 deletions

View File

@ -34,8 +34,11 @@ function addMonitor(element) {
}
}
}
dupParam = (monitorId == -1 ) ? '': '&dupId='+monitorId;
createPopup( '?view=monitor'+dupParam, 'zmMonitor0', 'monitor' );
if ( monitorId != -1 ) {
createPopup( '?view=monitor&dupId='+monitorId, 'zmMonitor0', 'monitor' );
} else {
window.location = '?view=add_monitors';
}
}
function editMonitor( element ) {