... 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 <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
// 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;