From dbd197d9bca750ba09dd2b34fc810068cfef3a61 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Sat, 11 Sep 2021 10:36:53 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03685=20-=20Front-end=20performances:=20I?= =?UTF-8?q?nclude=20advanced=20search=20resources=20only=20when=20necessar?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/application/WebPage/NiceWebPage.php | 4 ++-- sources/application/search/searchform.class.inc.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sources/application/WebPage/NiceWebPage.php b/sources/application/WebPage/NiceWebPage.php index 25a7a7ee6..2d1c9e892 100644 --- a/sources/application/WebPage/NiceWebPage.php +++ b/sources/application/WebPage/NiceWebPage.php @@ -49,6 +49,8 @@ class NiceWebPage extends WebPage // - Not used internally or by extensions yet 'js/clipboard.min.js', 'js/clipboardwidget.js', + // - SearchForm + 'js/searchformforeignkeys.js', // Deprecated files 'js/hovertip.js', @@ -152,8 +154,6 @@ EOF $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery-ui.custom.min.js'); $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/utils.js'); - - $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/searchformforeignkeys.js'); $this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/latinise/latinise.min.js'); } diff --git a/sources/application/search/searchform.class.inc.php b/sources/application/search/searchform.class.inc.php index 4ce89457b..e6fd0f7f1 100644 --- a/sources/application/search/searchform.class.inc.php +++ b/sources/application/search/searchform.class.inc.php @@ -57,6 +57,7 @@ class SearchForm $oUiBlock = new UIContentBlock(); $oUiBlock->AddMultipleJsFilesRelPaths([ 'node_modules/scrollmagic/scrollmagic/minified/ScrollMagic.min.js', + 'js/searchformforeignkeys.js', 'js/search/search_form_handler.js', 'js/search/search_form_handler_history.js', 'js/search/search_form_criteria.js',