From f3fc192218f82875832acbb2807eb9524c34a0fd Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 11 Mar 2015 16:55:37 -0400 Subject: [PATCH] webstaff: Allow the iframe code to pass a handle to the iframe out to the parent scope Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- Open-ILS/web/js/ui/default/staff/services/eframe.js | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.43.2