remove duplicated comments

pull/225/head
Aevann 2024-03-07 22:42:38 +02:00
parent 87da4fdf82
commit a8d9be545d
2 changed files with 0 additions and 9 deletions

View File

@ -41,7 +41,6 @@ const groupsSearchDictionary = {
};
function makeGroupsSearchDictionary() {
// get public groups list
const headers = new Headers({xhr: "xhr"})
const group_params = document.getElementById('group_params').value
return fetch(`/groups.csv${group_params}`, {
@ -72,7 +71,6 @@ function openGroupSpeedModal()
groupSearchDictionaryState = "loading"
return makeGroupsSearchDictionary();
case "loading":
// this works because once the fetch completes, the first keystroke callback will fire and use the current value
return Promise.reject();
case "ready":
return Promise.resolve();
@ -94,7 +92,6 @@ function populate_inline_group_modal(results, textbox)
group_index = 0;
inline_carot_modal.scrollTop = 0;
inline_carot_modal.innerHTML = "";
// Not sure why the results is a Set... but oh well
let i = 0;
for (let name of results)
{
@ -114,7 +111,6 @@ function populate_inline_group_modal(results, textbox)
markdown(textbox)
}
});
// Pack
group_option.appendChild(group_option_text);
inline_carot_modal.appendChild(group_option);
}

View File

@ -41,7 +41,6 @@ const usersSearchDictionary = {
};
function makeUsersSearchDictionary() {
// get public users list
const headers = new Headers({xhr: "xhr"})
const user_params = document.getElementById('user_params').value
return fetch(`/users.csv${user_params}`, {
@ -72,7 +71,6 @@ function openUserSpeedModal()
userSearchDictionaryState = "loading"
return makeUsersSearchDictionary();
case "loading":
// this works because once the fetch completes, the first keystroke callback will fire and use the current value
return Promise.reject();
case "ready":
return Promise.resolve();
@ -94,7 +92,6 @@ function populate_inline_user_modal(results, textbox)
user_index = 0;
inline_carot_modal.scrollTop = 0;
inline_carot_modal.innerHTML = "";
// Not sure why the results is a Set... but oh well
let i = 0;
for (let name of results)
{
@ -104,7 +101,6 @@ function populate_inline_user_modal(results, textbox)
user_option.tabIndex = 0;
let user_option_img = document.createElement("img");
user_option_img.className = "pp20";
// This is a bit
user_option_img.src = `/@${name}/pic`
let user_option_text = document.createElement("span");
@ -119,7 +115,6 @@ function populate_inline_user_modal(results, textbox)
markdown(textbox)
}
});
// Pack
user_option.appendChild(user_option_img);
user_option.appendChild(user_option_text);
inline_carot_modal.appendChild(user_option);