From: Galen Charlton Date: Tue, 7 Feb 2017 20:45:35 +0000 (-0500) Subject: webstaff: using egEmbedFrame escape opens new window at frame's current location X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=56d96cdebc0f1adb628c63f33e9e9b62708f5c59;p=working%2FEvergreen.git 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 --- 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;