Skip to content
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
3 changes: 3 additions & 0 deletions css/activities.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
transition: width 0.4s ease-in-out;
font-size: 24px;
color: black;
max-width: 100%;
}

#search:focus {
Expand All @@ -75,6 +76,8 @@
position: relative;
background-color: rgba(255, 255, 255, 1);
max-width: 396px;
max-height: 200px;
overflow-y: auto;
font-size: 18px;
border: 2px solid #87cefa;
list-style-type: none;
Expand Down
16 changes: 8 additions & 8 deletions js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -2385,27 +2385,27 @@ class Activity {
that.doSearch();
if (event.keyCode === 13) this.searchWidget.style.visibility = "visible";
},
focus: (event, ui) => {
focus: (event) => {
event.preventDefault();
that.searchWidget.value = ui.item.label;
}
});

$j("#search").autocomplete("widget").addClass("scrollSearch");

$j("#search").autocomplete("instance")._renderItem = (ul, item) => {
return $j("<li></li>")
.data("item.autocomplete", item)
.append(
'<img src="' +
item.artwork +
'" height = "20px">' +
"<a>" +
" " +
'" height="20px">' +
"<a> " +
item.label +
"</a>"
)
.appendTo(ul.css("z-index", 9999));
.appendTo(ul.css({
"z-index": 9999,
"max-height": "200px",
"overflow-y": "auto"
}));
};
const searchInput = this.searchWidget.idInput_custom;
if (!searchInput || searchInput.length <= 0) return;
Expand Down
Loading