From dc7f2b8746697ab24d12469b962bf3f87835202f Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 5 Mar 2018 11:50:19 -0500 Subject: [PATCH] LP#1753008 Load iframeResizer via script tag iframeResizer does not currently play nicely with webpack. Load it directly via script tag for now. This resolves a problem where the iframe fails to fill the screen when loading the reports UI in the browser client. Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/base_js.tt2 | 6 ++++++ Open-ILS/web/js/ui/default/staff/webpack.config.js | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/staff/base_js.tt2 b/Open-ILS/src/templates/staff/base_js.tt2 index 7b3d07f72b..e2e88dec73 100644 --- a/Open-ILS/src/templates/staff/base_js.tt2 +++ b/Open-ILS/src/templates/staff/base_js.tt2 @@ -75,6 +75,12 @@ UpUp.start({ + + + diff --git a/Open-ILS/web/js/ui/default/staff/webpack.config.js b/Open-ILS/web/js/ui/default/staff/webpack.config.js index 3aa54edb49..32e97b115d 100644 --- a/Open-ILS/web/js/ui/default/staff/webpack.config.js +++ b/Open-ILS/web/js/ui/default/staff/webpack.config.js @@ -42,7 +42,9 @@ const IMAGE_FILES = [ // https://github.com/webpack/webpack/issues/3128 const JS_FILES = [ './node_modules/moment/min/moment-with-locales.min.js', - './node_modules/moment-timezone/builds/moment-timezone-with-data.min.js' + './node_modules/moment-timezone/builds/moment-timezone-with-data.min.js', + './node_modules/iframe-resizer/js/iframeResizer.contentWindow.min.js', + './node_modules/iframe-resizer/js/iframeResizer.min.js' ] @@ -99,7 +101,6 @@ const vendorJsFiles = [ 'ng-toast', 'angular-tree-control', 'angular-tree-control/context-menu.js', - 'iframe-resizer', 'angular-order-object-by', 'lovefield', 'angular-tablesort' -- 2.43.2