Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSDEV-225 Show all users in mentions list #57

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,6 @@ public AjaxReturnObject<List<UserBasicInfo>> getRecipients(
if (shouldAddToRecipients(user, subject)) {
userInfos.add(user.toBasicInfo());
}
/* recipients list displayed in autocomplete shows only 10 users,
* so no need to return more from the server (see RSPAC-1252) */
if (userInfos.size() > 10) {
break;
}
}
if (userInfos.isEmpty()) {
ErrorList errors =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ var tinymcesetup = {

// 'mention' plugin comes from https://github.com/StevenDevooght/tinyMCE-mention
mentions: {
items: Infinity,

renderDropdown: function() {
return '<ul class="rte-autocomplete dropdown-menu mentions-list-wrapper"></ul>';
},

// get the items to be shown in the pop up box
source(query, process, delimiter) {
let id = $('.rs-global-id a:not(.recordInfoIcon)').text().replace(/\D/g, '');
Expand Down
5 changes: 5 additions & 0 deletions src/main/webapp/styles/pages/workspace/workspace.css
Original file line number Diff line number Diff line change
Expand Up @@ -614,3 +614,8 @@ img[id^="sharedStatusImg_"], .witnessedImg, .favoriteImg {
#fileBrowsing #fancyTree {
padding-bottom: 5px;
}

.mentions-list-wrapper {
height: 10rem;
overflow-y: auto;
}
Loading