webstaff: Allow the iframe code to pass a handle to the iframe out to the parent...
authorMike Rylander <mrylander@gmail.com>
Wed, 11 Mar 2015 20:55:37 +0000 (16:55 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 19 Aug 2015 17:39:12 +0000 (13:39 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/web/js/ui/default/staff/services/eframe.js

index b706a50..c68961a 100644 (file)
@@ -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);