From ee30b5990954d1749af268d93b238562224df645 Mon Sep 17 00:00:00 2001 From: Andrew Querol Date: Mon, 22 Mar 2021 23:44:33 -0500 Subject: [PATCH] Switch to window.open to '_blank' to prevent accidental navigation that looses changes. --- app/destinations/resources/classes/destinations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index 2550c276de..435bd29057 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -514,7 +514,7 @@ if (!class_exists('destinations')) { 'icon'=>'external-link-alt', 'id'=>'btn_dest_go', 'title'=>$text['label-edit'], - 'onclick'=>"let types = document.getElementById('{destination_id}_type').options; let opts = document.getElementById('{$destination_id}').options; if(opts[opts.selectedIndex].id && opts[opts.selectedIndex].id.length > 0) {window.location.assign('/app/'+types[types.selectedIndex].className+'/'+types[types.selectedIndex].id+'_edit.php?id='+opts[opts.selectedIndex].id);}" + 'onclick'=>"let types = document.getElementById('{destination_id}_type').options; let opts = document.getElementById('{$destination_id}').options; if(opts[opts.selectedIndex].id && opts[opts.selectedIndex].id.length > 0) {window.open('/app/'+types[types.selectedIndex].className+'/'+types[types.selectedIndex].id+'_edit.php?id='+opts[opts.selectedIndex].id, '_blank');}" ])."\n"; //debug information