From c280279cf79dc4eff2ef1e3184233dae197a1670 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 5 Aug 2021 14:47:17 -0400 Subject: [PATCH] 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. --- web/skins/classic/views/js/monitorprobe.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/skins/classic/views/js/monitorprobe.js b/web/skins/classic/views/js/monitorprobe.js index 1b628ed69..96f0c701e 100644 --- a/web/skins/classic/views/js/monitorprobe.js +++ b/web/skins/classic/views/js/monitorprobe.js @@ -1,6 +1,8 @@ function submitCamera( element ) { var form = element.form; - form.target = opener.name; + if (opener) { + form.target = opener.name; + } form.view.value = 'monitor'; form.submit(); }