32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-26 10:07:30 +00:00

Fix batch action + minor cleanup

This commit is contained in:
Tuan Pham Ngoc 2021-07-30 13:05:35 +07:00
parent ddb6bf3c91
commit 1bc0b8ea82
2 changed files with 3 additions and 3 deletions

View File

@ -9,10 +9,11 @@
defined('_JEXEC') or die; defined('_JEXEC') or die;
use Joomla\CMS\Language\Text; use Joomla\CMS\Language\Text;
?> ?>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
<?php echo Text::_('JCANCEL'); ?> <?php echo Text::_('JCANCEL'); ?>
</button> </button>
<button type="submit" id='batch-submit-button-id' class="btn btn-success" data-submit-task='weblink.batch'> <button type="submit" id='batch-submit-button-id' class="btn btn-success" onclick="Joomla.submitbutton('weblink.batch');return false;">
<?php echo Text::_('JGLOBAL_BATCH_PROCESS'); ?> <?php echo Text::_('JGLOBAL_BATCH_PROCESS'); ?>
</button> </button>

View File

@ -27,8 +27,7 @@ if ($app->isClient('site'))
HTMLHelper::_('behavior.multiselect'); HTMLHelper::_('behavior.multiselect');
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $this->document->getWebAssetManager()
$wa = $this->document->getWebAssetManager()
->registerAndUseScript('com_weblinks.admin-weblinks-modal', 'media/com_weblinks/js/admin-weblinks-modal.js', [], ['defer' => true], ['core']); ->registerAndUseScript('com_weblinks.admin-weblinks-modal', 'media/com_weblinks/js/admin-weblinks-modal.js', [], ['defer' => true], ['core']);
$function = $app->input->getCmd('function', 'jSelectWeblink'); $function = $app->input->getCmd('function', 'jSelectWeblink');