- Affected App
- WoltLab Suite Core
Folgender Code und ein Beispiel-Gif dazu. Das Problem betrifft vermutlich nicht nur die Report-Dialoge, sondern alle AJAX-Dialoge. Neben dem Überlappen, wird beim Schließen des Dialogs der andere Dialog geschlossen (siehe Gif).
WSC 3.1 und WSC 5.2
Code
<script data-relocate="true">
require(['Ui/Dialog'], function (UiDialog) {
elById('openDialog1').addEventListener(WCF_CLICK_EVENT, function(e) {
UiDialog.openStatic('dialog1', null, {
'title': 'dialog1'
});
});
elById('openDialog2').addEventListener(WCF_CLICK_EVENT, function(e) {
UiDialog.openStatic('dialog2', null, {
'title': 'dialog2'
});
});
new WCF.Moderation.Report.Content('com.woltlab.wbb.post', '#dialog1 button');
new WCF.Moderation.Report.Content('com.woltlab.wbb.post', '#dialog2 button');
});
</script>
<button id="openDialog1">Open dialog1</button>
<button id="openDialog2">Open dialog2</button>
<div id="dialog1" style="display: none;">
<button data-object-id="10018">Report 1</button>
</div>
<div id="dialog2" style="display: none;">
<button data-object-id="10017">Report 2</button>
</div>
Display More