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 6a6d6935e8
commit c280279cf7
1 changed files with 3 additions and 1 deletions

View File

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