diff --git a/codeception/_support/Page/Admin/NewsManagePage.php b/codeception/_support/Page/Admin/NewsManagePage.php index adc1b260ce6..e086edc7afa 100644 --- a/codeception/_support/Page/Admin/NewsManagePage.php +++ b/codeception/_support/Page/Admin/NewsManagePage.php @@ -46,7 +46,7 @@ public function 新規登録() public function 一覧_編集($rowNum) { - $this->tester->click(".c-contentsArea .list-group > li:nth-child(${rowNum}) a[title=編集]"); + $this->tester->click(".c-contentsArea .list-group > li:nth-child(${rowNum}) a[data-bs-original-title=編集]"); return $this; } @@ -66,7 +66,7 @@ public function 一覧_下へ($rowNum) public function 一覧_削除($rowNum) { - $this->tester->click(".c-contentsArea .list-group > li:nth-child(${rowNum}) [title=削除] a"); + $this->tester->click(".c-contentsArea .list-group > li:nth-child(${rowNum}) [data-bs-original-title=削除] a"); return $this; } diff --git a/codeception/_support/Page/Admin/SystemMemberManagePage.php b/codeception/_support/Page/Admin/SystemMemberManagePage.php index d765d61748e..1453d597b8e 100644 --- a/codeception/_support/Page/Admin/SystemMemberManagePage.php +++ b/codeception/_support/Page/Admin/SystemMemberManagePage.php @@ -24,14 +24,14 @@ public static function go($I) public function 編集($name) { - $this->tester->click("//*[@id='form1']//tr/td[1][contains(text(), '{$name}')]/parent::tr//*[@data-original-title='編集']"); + $this->tester->click("//*[@id='form1']//tr/td[1][contains(text(), '{$name}')]/parent::tr//*[@data-bs-original-title='編集']"); return $this; } public function 削除($name) { - $this->tester->click("//*[@id='form1']//tr/td[1][contains(text(), '{$name}')]/parent::tr//*[@data-original-title='削除']/a"); + $this->tester->click("//*[@id='form1']//tr/td[1][contains(text(), '{$name}')]/parent::tr//*[@data-bs-original-title='削除']/a"); $this->tester->wait(1); $this->tester->click('.modal .btn-ec-delete'); diff --git a/html/template/admin/assets/js/function.js b/html/template/admin/assets/js/function.js index ff217d75972..e6c822e93c9 100644 --- a/html/template/admin/assets/js/function.js +++ b/html/template/admin/assets/js/function.js @@ -25,25 +25,26 @@ var mainNavArea = function() { mainNavArea(); //Bootstrap ツールチップ +var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')) +var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) { + return new bootstrap.Tooltip(tooltipTriggerEl) +}); + +/** @deprecated プラグイン等の後方互換用 */ var toolTip = function() { $(function() { $('[data-tooltip="true"]').tooltip(); }) }; - toolTip(); -//popover ポップオーバー -// header -var popoverHeader = function() { - $(function() { - $('.c-headerBar__userMenu').popover({ - container: 'body' - }) - }) -}; -popoverHeader(); -// all page +// popover ポップオーバー +var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')) +var popoverList = popoverTriggerList.map(function (popoverTriggerEl) { + return new bootstrap.Popover(popoverTriggerEl) +}); + +/** @deprecated プラグイン等の後方互換用 */ var popoverAll = function() { $(function() { $('[data-toggle="popover"]').popover(); diff --git a/src/Eccube/Resource/template/admin/Content/block.twig b/src/Eccube/Resource/template/admin/Content/block.twig index 48c47dcfd81..e71fd07bd32 100644 --- a/src/Eccube/Resource/template/admin/Content/block.twig +++ b/src/Eccube/Resource/template/admin/Content/block.twig @@ -79,14 +79,14 @@ file that was distributed with this source code.
{% if form.Customer.vars.value is empty %}{{ 'admin.order.non_member'|trans }}{% else %}{{ form.Customer.vars.value }}{% endif %}
{{ form_widget(form.Customer) }} @@ -494,7 +494,7 @@ file that was distributed with this source code.