From 1bc0b8ea82de7339dcf6b614fc0e8c1517a78c20 Mon Sep 17 00:00:00 2001 From: Tuan Pham Ngoc Date: Fri, 30 Jul 2021 13:05:35 +0700 Subject: [PATCH] Fix batch action + minor cleanup --- .../com_weblinks/tmpl/weblinks/default_batch_footer.php | 3 ++- .../components/com_weblinks/tmpl/weblinks/modal.php | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/administrator/components/com_weblinks/tmpl/weblinks/default_batch_footer.php b/src/administrator/components/com_weblinks/tmpl/weblinks/default_batch_footer.php index da94bfd..05744dc 100644 --- a/src/administrator/components/com_weblinks/tmpl/weblinks/default_batch_footer.php +++ b/src/administrator/components/com_weblinks/tmpl/weblinks/default_batch_footer.php @@ -9,10 +9,11 @@ defined('_JEXEC') or die; use Joomla\CMS\Language\Text; + ?> - diff --git a/src/administrator/components/com_weblinks/tmpl/weblinks/modal.php b/src/administrator/components/com_weblinks/tmpl/weblinks/modal.php index 9450461..05081f4 100644 --- a/src/administrator/components/com_weblinks/tmpl/weblinks/modal.php +++ b/src/administrator/components/com_weblinks/tmpl/weblinks/modal.php @@ -27,8 +27,7 @@ if ($app->isClient('site')) HTMLHelper::_('behavior.multiselect'); -/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ -$wa = $this->document->getWebAssetManager() +$this->document->getWebAssetManager() ->registerAndUseScript('com_weblinks.admin-weblinks-modal', 'media/com_weblinks/js/admin-weblinks-modal.js', [], ['defer' => true], ['core']); $function = $app->input->getCmd('function', 'jSelectWeblink');