From 7dbff1af3e2e9528fac16b8313e9d8e6fb87c38e Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 9 Apr 2019 13:53:53 +0200 Subject: [PATCH] Hide iframe until it's loaded BT#15166 --- main/document/showinframes.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/main/document/showinframes.php b/main/document/showinframes.php index 8b07ef253b..2982384723 100755 --- a/main/document/showinframes.php +++ b/main/document/showinframes.php @@ -414,13 +414,28 @@ if ($execute_iframe) { echo $toolbar = Display::toolbarAction('actions-documents', [$actionsLeft]); + $translate = api_get_configuration_value('translate_html'); + $display = ''; + if ($translate) { + $display = ' display:none '; + echo ""; + } + echo ''; }