tweak embedding of Dojo acq admin pages
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 6 Feb 2017 17:53:41 +0000 (12:53 -0500)
committerKathy Lussier <klussier@masslnc.org>
Sat, 18 Feb 2017 18:31:31 +0000 (13:31 -0500)
- turn on the "open in new window" button
- set minimum height of eframes to 2000px

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/admin/acq/app.js

index 245725e..14dbe84 100644 (file)
@@ -9,7 +9,7 @@ angular.module('egAcqAdmin',
     var resolver = {delay : function(egStartup) {return egStartup.go()}};
 
     var eframe_template = 
-        '<eg-embed-frame url="acq_admin_url" handlers="funcs"></eg-embed-frame>';
+        '<eg-embed-frame allow-escape="true" min-height="min_height" url="acq_admin_url" handlers="funcs"></eg-embed-frame>';
 
     $routeProvider.when('/admin/acq/:noun/:verb/:extra?', {
         template: eframe_template,
@@ -49,6 +49,8 @@ function($scope , $routeParams , $location , egCore) {
             + location.search;
     }
 
+    $scope.min_height = 2000; // give lots of space to start
+
     // embed URL must include protocol/domain or it will be loaded via
     // push-state, resulting in an infinitely nested pages.
     $scope.acq_admin_url =