Skip to content

Commit 932795b

Browse files
committed
Merge branch '5.5' of https://github.com/WoltLab/WCF into 5.5
2 parents 9d555b2 + 6234fb3 commit 932795b

File tree

22 files changed

+138
-16
lines changed

22 files changed

+138
-16
lines changed

com.woltlab.wcf/package.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<packagedescription>Free CMS and web-framework, designed for awesome websites and communities.</packagedescription>
66
<packagedescription language="de">Freies CMS und Web-Framework, das eindrucksvolle Websites und Communities ermöglicht.</packagedescription>
77
<isapplication>1</isapplication>
8-
<version>5.5.21</version>
9-
<date>2024-04-22</date>
8+
<version>5.5.23</version>
9+
<date>2024-09-13</date>
1010
</packageinformation>
1111

1212
<authorinformation>
@@ -50,7 +50,7 @@
5050
<instruction type="script">acp/post_install.php</instruction>
5151
</instructions>
5252

53-
<instructions type="update" fromversion="5.5.20">
53+
<instructions type="update" fromversion="5.5.22">
5454
<instruction type="file">files_update.tar</instruction>
5555
</instructions>
5656
</package>

com.woltlab.wcf/templates/articleAdd.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@
381381
<small class="innerError">
382382
{if $errorType == 'empty'}
383383
{lang}wcf.global.form.error.empty{/lang}
384+
{elseif $errorType == 'disallowedBBCodes'}
385+
{lang}wcf.message.error.disallowedBBCodes{/lang}
384386
{else}
385387
{lang}wcf.acp.article.content.error.{@$errorType}{/lang}
386388
{/if}
@@ -539,6 +541,8 @@
539541
<small class="innerError">
540542
{if $errorType == 'empty'}
541543
{lang}wcf.global.form.error.empty{/lang}
544+
{elseif $errorType == 'disallowedBBCodes'}
545+
{lang}wcf.message.error.disallowedBBCodes{/lang}
542546
{else}
543547
{lang}wcf.acp.article.content.error.{@$errorType}{/lang}
544548
{/if}

ts/WoltLabSuite/Core/Date/Picker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,7 @@ const DatePicker = {
911911
const data = _data.get(element) as DatePickerData;
912912

913913
element.dataset.value = date.getTime().toString();
914+
element.dataset.empty = "false";
914915

915916
let format = "";
916917
let value: string;

ts/WoltLabSuite/Core/Ui/Dropdown/Simple.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,19 @@ function onScroll() {
7777
});
7878
}
7979

80+
/**
81+
* Recalculates drop-down positions on page resize.
82+
*/
83+
function onWindowResize() {
84+
_dropdowns.forEach((dropdown, containerId) => {
85+
if (!dropdown.classList.contains("dropdownOpen")) {
86+
return;
87+
}
88+
89+
UiDropdownSimple.setAlignment(dropdown, _menus.get(containerId)!);
90+
});
91+
}
92+
8093
/**
8194
* Notifies callbacks on status change.
8295
*/
@@ -379,6 +392,7 @@ const UiDropdownSimple = {
379392
DomChangeListener.add("WoltLabSuite/Core/Ui/Dropdown/Simple", () => UiDropdownSimple.initAll());
380393

381394
document.addEventListener("scroll", onScroll);
395+
window.addEventListener("resize", () => onWindowResize(), { passive: true });
382396

383397
// expose on window object for backward compatibility
384398
window.bc_wcfSimpleDropdown = this;

ts/WoltLabSuite/Core/Ui/Search.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,20 @@ function initSearchBar(): void {
7575

7676
_pageHeaderSearchMobile?.setAttribute("aria-expanded", "false");
7777
});
78+
79+
window.addEventListener(
80+
"resize",
81+
() => {
82+
if (_isMobile || !_pageHeader.classList.contains("searchBarOpen")) {
83+
return;
84+
}
85+
86+
UiAlignment.set(_pageHeaderSearch, _topMenu, {
87+
horizontal: "right",
88+
});
89+
},
90+
{ passive: true },
91+
);
7892
}
7993

8094
function initMobileSearch(): void {

ts/WoltLabSuite/Core/Ui/User/Menu/ControlPanel.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ export function setup(): void {
7070

7171
element.addEventListener("click", (event) => event.stopPropagation());
7272

73+
window.addEventListener(
74+
"resize",
75+
() => {
76+
if (element.hidden) {
77+
return;
78+
}
79+
80+
setAlignment(element, button);
81+
},
82+
{ passive: true },
83+
);
84+
7385
button.addEventListener("click", (event) => {
7486
event.preventDefault();
7587
event.stopPropagation();

wcfsetup/install/files/acp/templates/articleAdd.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,8 @@
374374
<small class="innerError">
375375
{if $errorType == 'empty'}
376376
{lang}wcf.global.form.error.empty{/lang}
377+
{elseif $errorType == 'disallowedBBCodes'}
378+
{lang}wcf.message.error.disallowedBBCodes{/lang}
377379
{else}
378380
{lang}wcf.acp.article.content.error.{@$errorType}{/lang}
379381
{/if}
@@ -532,6 +534,8 @@
532534
<small class="innerError">
533535
{if $errorType == 'empty'}
534536
{lang}wcf.global.form.error.empty{/lang}
537+
{elseif $errorType == 'disallowedBBCodes'}
538+
{lang}wcf.message.error.disallowedBBCodes{/lang}
535539
{else}
536540
{lang}wcf.acp.article.content.error.{@$errorType}{/lang}
537541
{/if}

wcfsetup/install/files/js/WCF.User.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,13 +790,14 @@ if (COMPILER_TARGET_DEFAULT) {
790790
*/
791791
_beginEdit: function (event) {
792792
if (event) event.preventDefault();
793+
794+
$("#profileContent").wcfTabs("select", "about");
793795

794796
if (this._active) return;
795797
this._active = true;
796798

797799
this._actionName = 'beginEdit';
798800
this._buttons.beginEdit.parent().addClass('active');
799-
$('#profileContent').wcfTabs('select', 'about');
800801

801802
// load form
802803
this._proxy.setOption('data', {

wcfsetup/install/files/js/WoltLabSuite.Core.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wcfsetup/install/files/js/WoltLabSuite.Core.tiny.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)