From 56d96cdebc0f1adb628c63f33e9e9b62708f5c59 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 7 Feb 2017 15:45:35 -0500 Subject: [PATCH] webstaff: using egEmbedFrame escape opens new window at frame's current location ... as opposed to whatever URL was originally embedded. For example, if you doing a PO search, then open the frame in a new window, the results of the search are displayed in that window rather than an empty search form. Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/web/js/ui/default/staff/services/eframe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/services/eframe.js b/Open-ILS/web/js/ui/default/staff/services/eframe.js index e87b0baa4b..7fdbd0af4b 100644 --- a/Open-ILS/web/js/ui/default/staff/services/eframe.js +++ b/Open-ILS/web/js/ui/default/staff/services/eframe.js @@ -276,7 +276,7 @@ angular.module('egCoreMod') // open a new tab with the embedded URL $scope.escapeEmbed = function() { $scope.showIframe = false; - $window.open($scope.url, '_blank').focus(); + $window.open($scope.iframe.contentWindow.location, '_blank').focus(); } $scope.restoreEmbed = function() { $scope.showIframe = true; -- 2.11.0