From: Mike Rylander Date: Wed, 11 Mar 2015 20:55:37 +0000 (-0400) Subject: Allow the iframe code to pass a handle to the iframe out to the parent scope X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c29134bf2526b95d0e9cfec9f6cf528f372f486e;p=working%2FEvergreen.git Allow the iframe code to pass a handle to the iframe out to the parent scope Signed-off-by: Mike Rylander --- 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 b706a508d2..c68961a9be 100644 --- a/Open-ILS/web/js/ui/default/staff/services/eframe.js +++ b/Open-ILS/web/js/ui/default/staff/services/eframe.js @@ -14,6 +14,7 @@ angular.module('egCoreMod') // optional hash of functions which augment or override // the stock xulG functions defined below. handlers : '=', + frame : '=', // called after onload of each new iframe page onchange : '=', @@ -64,6 +65,8 @@ angular.module('egCoreMod') // NOTE: catalog integration is not a stop-gap $window.egEmbedFrameLoader = function(iframe) { + $scope.frame = iframe; + var page = iframe.contentWindow.location.href; console.debug('egEmbedFrameLoader(): ' + page);