Continue to work even if opener isn't defined, which it isn't anymore because we got rid of popups. Fixes save button on monitorprobe.

This commit is contained in:
Isaac Connor 2021-08-05 14:47:17 -04:00
parent acdd8bb08b
commit 7db25a5e1b
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
function submitCamera( element ) {
var form = element.form;
if (opener) {
form.target = opener.name;
}
form.view.value = 'monitor';
form.submit();
}