From 0e79a14254a6ea6954e8fe9a968421e7895a0cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikel=20Mart=C3=ADn?= Date: Fri, 29 Nov 2024 13:20:48 +0100 Subject: [PATCH] MDL-75669 theme_boost: Refactor BS5 data attributes --- admin/amd/build/expand_hash.min.js | 2 +- admin/amd/build/expand_hash.min.js.map | 2 +- admin/amd/src/expand_hash.js | 2 +- admin/classes/table/hook_list_table.php | 2 +- .../templates/settings_application.mustache | 2 +- .../hugo/site/layouts/_default/docs.html | 2 +- .../site/layouts/partials/docs-sidebar.html | 2 +- .../site/layouts/shortcodes/moodleicons.html | 2 +- .../site/layouts/shortcodes/mustache.html | 6 +++--- .../templates/clipboardbutton.mustache | 2 +- admin/tool/mfa/factor/totp/classes/factor.php | 4 ++-- admin/tool/mobile/lib.php | 2 +- .../templates/summarise_button.mustache | 4 ++-- .../util/ui/templates/formselectall.mustache | 2 +- badges/templates/issued_badge.mustache | 2 +- .../templates/course-action-menu.mustache | 2 +- .../templates/nav-display-selector.mustache | 2 +- .../templates/nav-grouping-selector.mustache | 2 +- .../templates/nav-sort-selector.mustache | 2 +- blocks/tests/behat/behat_blocks.php | 2 +- blocks/timeline/amd/build/view_nav.min.js | 2 +- blocks/timeline/amd/build/view_nav.min.js.map | 2 +- blocks/timeline/amd/src/view_nav.js | 2 +- .../templates/nav-day-filter.mustache | 2 +- .../templates/nav-view-selector.mustache | 6 +++--- .../templates/minicalendar_day_link.mustache | 12 +++++------ calendar/templates/view_selector.mustache | 2 +- .../bankcontent/toolbar_dropdown.mustache | 2 +- .../templates/contentbankmenu.mustache | 2 +- .../local/activitychooser/selectors.min.js | 2 +- .../activitychooser/selectors.min.js.map | 2 +- .../src/local/activitychooser/selectors.js | 6 +++--- course/format/amd/build/local/content.min.js | 2 +- .../format/amd/build/local/content.min.js.map | 2 +- .../amd/build/local/content/actions.min.js | 2 +- .../build/local/content/actions.min.js.map | 2 +- .../local/courseindex/courseindex.min.js | 2 +- .../local/courseindex/courseindex.min.js.map | 2 +- course/format/amd/src/local/content.js | 2 +- .../format/amd/src/local/content/actions.js | 4 ++-- .../amd/src/local/courseindex/courseindex.js | 2 +- .../local/content/cm/controlmenu.mustache | 2 +- .../local/content/movecmsection.mustache | 6 +++--- .../local/content/section/header.mustache | 2 +- .../local/courseindex/section.mustache | 2 +- course/templates/activitychooser.mustache | 12 +++++------ .../templates/activitychooserbutton.mustache | 2 +- .../defaultactivitycompletion.mustache | 2 +- course/tests/behat/behat_course.php | 20 +++++++++---------- .../behat/course_collapse_sections.feature | 12 +++++------ .../table/published_resources_table.php | 12 +++++------ enrol/lti/classes/manage_table.php | 12 +++++------ .../ltiadvantage/registration_view.mustache | 6 +++--- .../grades/grader/gradingpanel.mustache | 12 +++++------ .../grades/grader/gradingpanel.mustache | 4 ++-- .../tree/bulk_move_category_item.mustache | 4 ++-- grade/templates/cellmenu.mustache | 2 +- h5p/templates/h5plibraries.mustache | 4 ++-- .../comboboxsearch/search_combobox.min.js | 2 +- .../comboboxsearch/search_combobox.min.js.map | 2 +- lib/amd/build/dynamic_tabs.min.js | 2 +- lib/amd/build/dynamic_tabs.min.js.map | 2 +- lib/amd/build/menu_navigation.min.js | 2 +- lib/amd/build/menu_navigation.min.js.map | 2 +- lib/amd/build/modal.min.js | 2 +- lib/amd/build/modal.min.js.map | 2 +- lib/amd/build/page_global.min.js | 2 +- lib/amd/build/page_global.min.js.map | 2 +- lib/amd/src/comboboxsearch/search_combobox.js | 2 +- lib/amd/src/dynamic_tabs.js | 6 +++--- lib/amd/src/menu_navigation.js | 2 +- lib/amd/src/modal.js | 2 +- lib/amd/src/page_global.js | 6 +++--- lib/behat/classes/partial_named_selector.php | 2 +- .../moodle-atto_equation-button-debug.js | 2 +- .../moodle-atto_equation-button-min.js | 2 +- .../moodle-atto_equation-button.js | 2 +- .../equation/yui/src/button/js/button.js | 2 +- .../moodle-atto_h5p-button-debug.js | 2 +- .../moodle-atto_h5p-button-min.js | 2 +- .../moodle-atto_h5p-button.js | 2 +- .../plugins/h5p/yui/src/button/js/button.js | 2 +- .../moodle-atto_media-button-debug.js | 18 ++++++++--------- .../moodle-atto_media-button-min.js | 4 ++-- .../moodle-atto_media-button.js | 18 ++++++++--------- .../plugins/media/yui/src/button/js/button.js | 18 ++++++++--------- .../equation/templates/modal_library.mustache | 4 ++-- .../tiny/plugins/h5p/templates/modal.mustache | 2 +- .../templates/embed_media_modal.mustache | 6 +++--- .../embed_media_modal_audio.mustache | 16 +++++++-------- .../embed_media_modal_video.mustache | 16 +++++++-------- lib/form/templates/element-header.mustache | 2 +- lib/templates/action_menu_trigger.mustache | 2 +- .../bulkactions/bulk_actions.mustache | 2 +- lib/templates/comboboxsearch.mustache | 2 +- lib/templates/custom_menu_item.mustache | 2 +- lib/templates/dynamic_tabs.mustache | 2 +- lib/templates/local/dropdown/dialog.mustache | 2 +- lib/templates/local/toast/message.mustache | 4 ++-- lib/templates/moremenu.mustache | 2 +- lib/templates/moremenu_children.mustache | 6 +++--- lib/templates/notification_base.mustache | 2 +- .../paged_content_paging_bar.mustache | 2 +- .../paged_content_paging_dropdown.mustache | 2 +- lib/templates/search_input_navbar.mustache | 4 ++-- lib/templates/select_menu.mustache | 2 +- lib/templates/settings_link_page.mustache | 4 ++-- lib/templates/toggle.mustache | 2 +- lib/templates/user_menu.mustache | 2 +- lib/tests/behat/behat_navigation.php | 2 +- .../behat/expand_single_fieldset.feature | 2 +- ...message_drawer_view_contacts_body.mustache | 4 ++-- ...iew_conversation_footer_edit_mode.mustache | 4 ++-- ...ation_header_content_type_private.mustache | 2 +- ...sation_header_content_type_public.mustache | 2 +- ...ersation_header_content_type_self.mustache | 2 +- ...sage_drawer_view_overview_section.mustache | 6 +++--- message/tests/behat/behat_message.php | 2 +- mod/data/preset/proposals/listtemplate.html | 2 +- mod/forum/classes/post_form.php | 2 +- mod/forum/templates/discussion_list.mustache | 8 ++++---- .../templates/forum_action_menu.mustache | 6 +++--- ...m_discussion_nested_v2_first_post.mustache | 6 +++--- .../forum_new_discussion_actionbar.mustache | 2 +- .../grades/grader/discussion/posts.mustache | 4 ++-- .../grades/local/grader/navigation.mustache | 2 +- mod/forum/tests/behat/behat_mod_forum.php | 2 +- .../templates/standard_action_menu.mustache | 2 +- mod/lti/templates/categorynode.mustache | 2 +- .../modal_add_random_question.mustache | 4 ++-- mod/quiz/tests/behat/behat_mod_quiz.php | 4 ++-- mod/scorm/templates/report_actionbar.mustache | 2 +- .../templates/add_column.mustache | 2 +- .../templates/newchild.mustache | 6 +++--- .../templates/preview_question.mustache | 2 +- question/templates/bulk_actions_ui.mustache | 2 +- .../multianswer/amd/build/feedback.min.js | 2 +- .../multianswer/amd/build/feedback.min.js.map | 2 +- question/type/multianswer/amd/src/feedback.js | 2 +- question/type/multianswer/renderer.php | 12 +++++------ reportbuilder/amd/build/sidebar.min.js | 2 +- reportbuilder/amd/build/sidebar.min.js.map | 2 +- reportbuilder/amd/src/sidebar.js | 2 +- .../classes/table/custom_report_table.php | 2 +- .../templates/local/filters/area.mustache | 2 +- reportbuilder/templates/toggle_card.mustache | 4 ++-- theme/boost/amd/build/aria.min.js | 2 +- theme/boost/amd/build/aria.min.js.map | 2 +- theme/boost/amd/src/aria.js | 10 +++++----- theme/boost/scss/moodle/moremenu.scss | 2 +- theme/boost/scss/moodle/reportbuilder.scss | 4 ++-- theme/boost/style/moodle.css | 10 +++++----- .../templates/admin_setting_tabs.mustache | 2 +- .../courseindexdrawercontrols.mustache | 2 +- theme/boost/templates/language_menu.mustache | 2 +- .../templates/primary-drawer-mobile.mustache | 2 +- theme/classic/style/moodle.css | 10 +++++----- .../classic/templates/core/user_menu.mustache | 2 +- .../behat_theme_classic_behat_navigation.php | 2 +- 159 files changed, 300 insertions(+), 300 deletions(-) diff --git a/admin/amd/build/expand_hash.min.js b/admin/amd/build/expand_hash.min.js index e6d91b7003b5e..1488b82081324 100644 --- a/admin/amd/build/expand_hash.min.js +++ b/admin/amd/build/expand_hash.min.js @@ -7,6 +7,6 @@ define("core_admin/expand_hash",["exports"],(function(_exports){Object.definePro * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @since 4.5 */ -const SELECTORS_COLLAPSE_ELEMENTS='[data-toggle="collapse"]',SELECTORS_FOCUSTHENEXPAND_ELEMENTS=".focus-expand";_exports.init=()=>{const focusexpand=document.querySelector(SELECTORS_FOCUSTHENEXPAND_ELEMENTS);null==focusexpand||focusexpand.addEventListener("click",(()=>{expandSection("".concat(focusexpand.getAttribute("href")))}))};const expandSection=hash=>{const container=document.querySelector(hash),targetContainer=null==container?void 0:container.querySelector(SELECTORS_COLLAPSE_ELEMENTS);if("false"===(null==targetContainer?void 0:targetContainer.getAttribute("aria-expanded"))){const collapseId=targetContainer.getAttribute("aria-controls"),collapseContainer=document.getElementById(collapseId);collapseContainer.classList.remove("collapse"),collapseContainer.classList.add("show"),targetContainer.setAttribute("aria-expanded","true"),targetContainer.classList.remove("collapsed");const collapseElement=document.querySelector(".collapseexpand.collapsemenu");collapseElement.setAttribute("aria-expanded","true"),collapseElement.classList.remove("collapsed")}};_exports.expandSection=expandSection})); +const SELECTORS_COLLAPSE_ELEMENTS='[data-bs-toggle="collapse"]',SELECTORS_FOCUSTHENEXPAND_ELEMENTS=".focus-expand";_exports.init=()=>{const focusexpand=document.querySelector(SELECTORS_FOCUSTHENEXPAND_ELEMENTS);null==focusexpand||focusexpand.addEventListener("click",(()=>{expandSection("".concat(focusexpand.getAttribute("href")))}))};const expandSection=hash=>{const container=document.querySelector(hash),targetContainer=null==container?void 0:container.querySelector(SELECTORS_COLLAPSE_ELEMENTS);if("false"===(null==targetContainer?void 0:targetContainer.getAttribute("aria-expanded"))){const collapseId=targetContainer.getAttribute("aria-controls"),collapseContainer=document.getElementById(collapseId);collapseContainer.classList.remove("collapse"),collapseContainer.classList.add("show"),targetContainer.setAttribute("aria-expanded","true"),targetContainer.classList.remove("collapsed");const collapseElement=document.querySelector(".collapseexpand.collapsemenu");collapseElement.setAttribute("aria-expanded","true"),collapseElement.classList.remove("collapsed")}};_exports.expandSection=expandSection})); //# sourceMappingURL=expand_hash.min.js.map \ No newline at end of file diff --git a/admin/amd/build/expand_hash.min.js.map b/admin/amd/build/expand_hash.min.js.map index 9aa1cbdbfc9f8..ac1abf5753727 100644 --- a/admin/amd/build/expand_hash.min.js.map +++ b/admin/amd/build/expand_hash.min.js.map @@ -1 +1 @@ -{"version":3,"file":"expand_hash.min.js","sources":["../src/expand_hash.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle. If not, see .\n\n/**\n * Expand the collapse section element.\n *\n * @module core_admin/expand_hash\n * @copyright Meirza \n * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n * @since 4.5\n */\n\nconst SELECTORS = {\n COLLAPSE_ELEMENTS: '[data-toggle=\"collapse\"]',\n FOCUSTHENEXPAND_ELEMENTS: '.focus-expand',\n};\n\n/**\n * Initializes the focus and expand functionality.\n */\nexport const init = () => {\n // Select all collapsible elements only.\n const focusexpand = document.querySelector(SELECTORS.FOCUSTHENEXPAND_ELEMENTS);\n\n // Add click event listener to the anchor element\n focusexpand?.addEventListener('click', () => {\n expandSection(`${focusexpand.getAttribute('href')}`);\n });\n};\n\n/**\n * Expands a section based on the provided URL hash.\n *\n * This function takes a hash string, finds the corresponding element in the DOM,\n * and expands it if it is currently collapsed. It updates the necessary ARIA\n * attributes and classes to reflect the expanded state.\n *\n * @param {string} hash - The hash (e.g., '#elementId') of the element to expand.\n */\nexport const expandSection = (hash) => {\n const container = document.querySelector(hash);\n const targetContainer = container?.querySelector(SELECTORS.COLLAPSE_ELEMENTS);\n\n if (targetContainer?.getAttribute('aria-expanded') === 'false') {\n const collapseId = targetContainer.getAttribute('aria-controls');\n const collapseContainer = document.getElementById(collapseId);\n\n // Show the content.\n collapseContainer.classList.remove('collapse');\n collapseContainer.classList.add('show');\n\n // Update aria-expanded attribute to reflect the new state.\n targetContainer.setAttribute('aria-expanded', 'true');\n targetContainer.classList.remove('collapsed');\n\n // Get collapse expand menu element.\n const collapseElement = document.querySelector('.collapseexpand.collapsemenu');\n // Ensure it gets noticed to make it work.\n collapseElement.setAttribute('aria-expanded', 'true');\n collapseElement.classList.remove('collapsed');\n }\n};\n"],"names":["SELECTORS","focusexpand","document","querySelector","addEventListener","expandSection","getAttribute","hash","container","targetContainer","collapseId","collapseContainer","getElementById","classList","remove","add","setAttribute","collapseElement"],"mappings":";;;;;;;;;MAwBMA,4BACiB,2BADjBA,mCAEwB,8BAMV,WAEVC,YAAcC,SAASC,cAAcH,oCAG3CC,MAAAA,aAAAA,YAAaG,iBAAiB,SAAS,KACnCC,wBAAiBJ,YAAYK,aAAa,oBAarCD,cAAiBE,aACpBC,UAAYN,SAASC,cAAcI,MACnCE,gBAAkBD,MAAAA,iBAAAA,UAAWL,cAAcH,gCAEM,WAAnDS,MAAAA,uBAAAA,gBAAiBH,aAAa,kBAA8B,OACtDI,WAAaD,gBAAgBH,aAAa,iBAC1CK,kBAAoBT,SAASU,eAAeF,YAGlDC,kBAAkBE,UAAUC,OAAO,YACnCH,kBAAkBE,UAAUE,IAAI,QAGhCN,gBAAgBO,aAAa,gBAAiB,QAC9CP,gBAAgBI,UAAUC,OAAO,mBAG3BG,gBAAkBf,SAASC,cAAc,gCAE/Cc,gBAAgBD,aAAa,gBAAiB,QAC9CC,gBAAgBJ,UAAUC,OAAO"} \ No newline at end of file +{"version":3,"file":"expand_hash.min.js","sources":["../src/expand_hash.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle. If not, see .\n\n/**\n * Expand the collapse section element.\n *\n * @module core_admin/expand_hash\n * @copyright Meirza \n * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n * @since 4.5\n */\n\nconst SELECTORS = {\n COLLAPSE_ELEMENTS: '[data-bs-toggle=\"collapse\"]',\n FOCUSTHENEXPAND_ELEMENTS: '.focus-expand',\n};\n\n/**\n * Initializes the focus and expand functionality.\n */\nexport const init = () => {\n // Select all collapsible elements only.\n const focusexpand = document.querySelector(SELECTORS.FOCUSTHENEXPAND_ELEMENTS);\n\n // Add click event listener to the anchor element\n focusexpand?.addEventListener('click', () => {\n expandSection(`${focusexpand.getAttribute('href')}`);\n });\n};\n\n/**\n * Expands a section based on the provided URL hash.\n *\n * This function takes a hash string, finds the corresponding element in the DOM,\n * and expands it if it is currently collapsed. It updates the necessary ARIA\n * attributes and classes to reflect the expanded state.\n *\n * @param {string} hash - The hash (e.g., '#elementId') of the element to expand.\n */\nexport const expandSection = (hash) => {\n const container = document.querySelector(hash);\n const targetContainer = container?.querySelector(SELECTORS.COLLAPSE_ELEMENTS);\n\n if (targetContainer?.getAttribute('aria-expanded') === 'false') {\n const collapseId = targetContainer.getAttribute('aria-controls');\n const collapseContainer = document.getElementById(collapseId);\n\n // Show the content.\n collapseContainer.classList.remove('collapse');\n collapseContainer.classList.add('show');\n\n // Update aria-expanded attribute to reflect the new state.\n targetContainer.setAttribute('aria-expanded', 'true');\n targetContainer.classList.remove('collapsed');\n\n // Get collapse expand menu element.\n const collapseElement = document.querySelector('.collapseexpand.collapsemenu');\n // Ensure it gets noticed to make it work.\n collapseElement.setAttribute('aria-expanded', 'true');\n collapseElement.classList.remove('collapsed');\n }\n};\n"],"names":["SELECTORS","focusexpand","document","querySelector","addEventListener","expandSection","getAttribute","hash","container","targetContainer","collapseId","collapseContainer","getElementById","classList","remove","add","setAttribute","collapseElement"],"mappings":";;;;;;;;;MAwBMA,4BACiB,8BADjBA,mCAEwB,8BAMV,WAEVC,YAAcC,SAASC,cAAcH,oCAG3CC,MAAAA,aAAAA,YAAaG,iBAAiB,SAAS,KACnCC,wBAAiBJ,YAAYK,aAAa,oBAarCD,cAAiBE,aACpBC,UAAYN,SAASC,cAAcI,MACnCE,gBAAkBD,MAAAA,iBAAAA,UAAWL,cAAcH,gCAEM,WAAnDS,MAAAA,uBAAAA,gBAAiBH,aAAa,kBAA8B,OACtDI,WAAaD,gBAAgBH,aAAa,iBAC1CK,kBAAoBT,SAASU,eAAeF,YAGlDC,kBAAkBE,UAAUC,OAAO,YACnCH,kBAAkBE,UAAUE,IAAI,QAGhCN,gBAAgBO,aAAa,gBAAiB,QAC9CP,gBAAgBI,UAAUC,OAAO,mBAG3BG,gBAAkBf,SAASC,cAAc,gCAE/Cc,gBAAgBD,aAAa,gBAAiB,QAC9CC,gBAAgBJ,UAAUC,OAAO"} \ No newline at end of file diff --git a/admin/amd/src/expand_hash.js b/admin/amd/src/expand_hash.js index 77094466cb363..741e3589703b2 100644 --- a/admin/amd/src/expand_hash.js +++ b/admin/amd/src/expand_hash.js @@ -23,7 +23,7 @@ */ const SELECTORS = { - COLLAPSE_ELEMENTS: '[data-toggle="collapse"]', + COLLAPSE_ELEMENTS: '[data-bs-toggle="collapse"]', FOCUSTHENEXPAND_ELEMENTS: '.focus-expand', }; diff --git a/admin/classes/table/hook_list_table.php b/admin/classes/table/hook_list_table.php index 7f14bb73a830d..0e6145bcf61ef 100644 --- a/admin/classes/table/hook_list_table.php +++ b/admin/classes/table/hook_list_table.php @@ -232,7 +232,7 @@ protected function get_tag( } if ($tooltip) { - $attributes['data-toggle'] = 'tooltip'; + $attributes['data-bs-toggle'] = 'tooltip'; $attributes['title'] = $tooltip; } return html_writer::span($tag, "badge badge-{$type}", $attributes); diff --git a/admin/tool/admin_presets/templates/settings_application.mustache b/admin/tool/admin_presets/templates/settings_application.mustache index dccd0ad065a3a..44f02ef6190ad 100644 --- a/admin/tool/admin_presets/templates/settings_application.mustache +++ b/admin/tool/admin_presets/templates/settings_application.mustache @@ -45,7 +45,7 @@ {{#skippedchanges.show}} {{#skippedchanges.heading}}

-

diff --git a/admin/tool/componentlibrary/hugo/site/layouts/_default/docs.html b/admin/tool/componentlibrary/hugo/site/layouts/_default/docs.html index d5f937f1f3dfa..6deceb28a54d6 100644 --- a/admin/tool/componentlibrary/hugo/site/layouts/_default/docs.html +++ b/admin/tool/componentlibrary/hugo/site/layouts/_default/docs.html @@ -18,7 +18,7 @@ - diff --git a/admin/tool/mfa/factor/totp/classes/factor.php b/admin/tool/mfa/factor/totp/classes/factor.php index 131b9dd40817e..b28969869c9d4 100644 --- a/admin/tool/mfa/factor/totp/classes/factor.php +++ b/admin/tool/mfa/factor/totp/classes/factor.php @@ -205,8 +205,8 @@ public function setup_factor_form_definition_after_data(MoodleQuickForm $mform): $html = \html_writer::div($html, 'collapse', ['id' => 'collapseManualAttributes']); $togglelink = \html_writer::tag('a', get_string('setupfactor:link', 'factor_totp'), [ - 'data-toggle' => 'collapse', - 'data-target' => '#collapseManualAttributes', + 'data-bs-toggle' => 'collapse', + 'data-bs-target' => '#collapseManualAttributes', 'aria-expanded' => 'false', 'aria-controls' => 'collapseManualAttributes', 'href' => '#', diff --git a/admin/tool/mobile/lib.php b/admin/tool/mobile/lib.php index 4424c6f3e515a..72eeeaafcbada 100644 --- a/admin/tool/mobile/lib.php +++ b/admin/tool/mobile/lib.php @@ -132,7 +132,7 @@ function tool_mobile_myprofile_navigation(\core_user\output\myprofile\tree $tree $mobileqr = html_writer::tag('p', get_string('qrcodeformobileapploginabout', 'tool_mobile', format_time($qrkeyttl))); $mobileqr .= html_writer::link('#qrcode', get_string('viewqrcode', 'tool_mobile'), - ['class' => 'btn btn-primary mt-2', 'data-toggle' => 'collapse', + ['class' => 'btn btn-primary mt-2', 'data-bs-toggle' => 'collapse', 'role' => 'button', 'aria-expanded' => 'false']); $mobileqr .= html_writer::div(html_writer::img($qrcodeimg, $qrcodeforappstr), 'collapse mt-4', ['id' => 'qrcode']); } diff --git a/ai/placement/courseassist/templates/summarise_button.mustache b/ai/placement/courseassist/templates/summarise_button.mustache index 2c22587994ba3..a8dfa11c17843 100644 --- a/ai/placement/courseassist/templates/summarise_button.mustache +++ b/ai/placement/courseassist/templates/summarise_button.mustache @@ -31,8 +31,8 @@ aria-controls="ai-drawer" type="button" data-action="course-summarise" - data-toggle="tooltip" - data-html="true" + data-bs-toggle="tooltip" + data-bs-html="true" title="{{#str}} summarise_tooltips, aiplacement_courseassist {{/str}}" > diff --git a/backup/util/ui/templates/formselectall.mustache b/backup/util/ui/templates/formselectall.mustache index 286c073273895..9eec85c0f6def 100644 --- a/backup/util/ui/templates/formselectall.mustache +++ b/backup/util/ui/templates/formselectall.mustache @@ -52,7 +52,7 @@ (
diff --git a/blocks/myoverview/templates/course-action-menu.mustache b/blocks/myoverview/templates/course-action-menu.mustache index 1967cc8191233..2bba7e69bbeb9 100644 --- a/blocks/myoverview/templates/course-action-menu.mustache +++ b/blocks/myoverview/templates/course-action-menu.mustache @@ -27,7 +27,7 @@