-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '5.1-dev' of https://github.com/joomla/joomla-cms into m…
…od-version
- Loading branch information
Showing
15 changed files
with
322 additions
and
36 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
administrator/components/com_admin/sql/updates/mysql/5.1.0-2024-02-10.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE `#__guidedtour_steps` ADD COLUMN `params` text NULL /** CAN FAIL **/; |
1 change: 1 addition & 0 deletions
1
administrator/components/com_admin/sql/updates/postgresql/5.1.0-2024-02-10.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE "#__guidedtour_steps" ADD COLUMN "params" text NULL /** CAN FAIL **/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json", | ||
"name": "com_guidedtours", | ||
"version": "4.0.0", | ||
"description": "Joomla CMS", | ||
"license": "GPL-2.0-or-later", | ||
"assets": [ | ||
{ | ||
"name": "com_guidedtours.tour-edit", | ||
"type": "script", | ||
"uri": "com_guidedtours/tour-edit.min.js", | ||
"dependencies": [ | ||
"core" | ||
], | ||
"attributes": { | ||
"type": "module", | ||
"defer": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
(() => { | ||
'use strict'; | ||
|
||
// before 'joomla:showon-processed' is implemented in Showon we must use more frequent 'joomla:showon-show' and'joomla:showon-hide' events | ||
['joomla:showon-show', 'joomla:showon-hide'].forEach((eventType) => { | ||
document.addEventListener(eventType, () => { | ||
document.querySelectorAll('#guidedtour-dates-form fieldset').forEach((fieldset) => { | ||
// Only hide fieldsets containing field control-group i.e. not radio selectors etc. that may use fieldsets | ||
if (fieldset.querySelectorAll(':scope .control-group').length === 0) { | ||
return; | ||
} | ||
const visibleChildren = fieldset.querySelectorAll(':scope .control-group:not(.hidden)'); | ||
if (visibleChildren.length) { | ||
fieldset.classList.remove('hidden'); | ||
} else { | ||
fieldset.classList.add('hidden'); | ||
} | ||
}); | ||
document.querySelectorAll('#guidedtour-dates-form joomla-tab-element').forEach((tabelement) => { | ||
const tabLabel = document.querySelector(`button[aria-controls="${tabelement.id}"]`); | ||
if (tabLabel) { | ||
const visibleChildren = tabelement.querySelectorAll(':scope .control-group:not(.hidden)'); | ||
if (visibleChildren.length) { | ||
tabLabel.removeAttribute('hidden'); | ||
} else { | ||
tabLabel.setAttribute('hidden', 'hidden'); | ||
} | ||
} | ||
}); | ||
}); | ||
}); | ||
})(); |
Oops, something went wrong.