Skip to content

Commit

Permalink
Merge branch '5.0' into feature/dev-1165-edit-element-additional-tool…
Browse files Browse the repository at this point in the history
…bar-menu

# Conflicts:
#	src/web/assets/cp/dist/cp.js
#	src/web/assets/cp/dist/cp.js.map
  • Loading branch information
brandonkelly committed Nov 2, 2023
2 parents 3b13f70 + e259a20 commit a02ffa3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/web/assets/cp/src/js/DeleteUserModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Craft.DeleteUserModal = Garnish.Modal.extend(
'<div id="transferselect' +
this.id +
'" class="elementselect">' +
'<div class="elements"></div>' +
'<ul class="elements"></ul>' +
'<button type="button" class="btn add icon dashed">' +
Craft.t('app', 'Choose a user') +
'</button>' +
Expand All @@ -68,14 +68,15 @@ Craft.DeleteUserModal = Garnish.Modal.extend(
text: Craft.t('app', 'Cancel'),
}).appendTo($buttons);

const $contentSummary = $body.find('.content-summary');
if (settings.contentSummary.length) {
for (let i = 0; i < settings.contentSummary.length; i++) {
$body
$contentSummary
.find('ul')
.append($('<li/>', {text: settings.contentSummary[i]}));
}
} else {
$body.find('ul').remove();
$contentSummary.find('ul').remove();
}

this.$deleteActionRadios = $body.find('input[type=radio]');
Expand Down

0 comments on commit a02ffa3

Please sign in to comment.