remove duplicated comments
parent
87da4fdf82
commit
a8d9be545d
|
@ -41,7 +41,6 @@ const groupsSearchDictionary = {
|
||||||
};
|
};
|
||||||
|
|
||||||
function makeGroupsSearchDictionary() {
|
function makeGroupsSearchDictionary() {
|
||||||
// get public groups list
|
|
||||||
const headers = new Headers({xhr: "xhr"})
|
const headers = new Headers({xhr: "xhr"})
|
||||||
const group_params = document.getElementById('group_params').value
|
const group_params = document.getElementById('group_params').value
|
||||||
return fetch(`/groups.csv${group_params}`, {
|
return fetch(`/groups.csv${group_params}`, {
|
||||||
|
@ -72,7 +71,6 @@ function openGroupSpeedModal()
|
||||||
groupSearchDictionaryState = "loading"
|
groupSearchDictionaryState = "loading"
|
||||||
return makeGroupsSearchDictionary();
|
return makeGroupsSearchDictionary();
|
||||||
case "loading":
|
case "loading":
|
||||||
// this works because once the fetch completes, the first keystroke callback will fire and use the current value
|
|
||||||
return Promise.reject();
|
return Promise.reject();
|
||||||
case "ready":
|
case "ready":
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
|
@ -94,7 +92,6 @@ function populate_inline_group_modal(results, textbox)
|
||||||
group_index = 0;
|
group_index = 0;
|
||||||
inline_carot_modal.scrollTop = 0;
|
inline_carot_modal.scrollTop = 0;
|
||||||
inline_carot_modal.innerHTML = "";
|
inline_carot_modal.innerHTML = "";
|
||||||
// Not sure why the results is a Set... but oh well
|
|
||||||
let i = 0;
|
let i = 0;
|
||||||
for (let name of results)
|
for (let name of results)
|
||||||
{
|
{
|
||||||
|
@ -114,7 +111,6 @@ function populate_inline_group_modal(results, textbox)
|
||||||
markdown(textbox)
|
markdown(textbox)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Pack
|
|
||||||
group_option.appendChild(group_option_text);
|
group_option.appendChild(group_option_text);
|
||||||
inline_carot_modal.appendChild(group_option);
|
inline_carot_modal.appendChild(group_option);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,6 @@ const usersSearchDictionary = {
|
||||||
};
|
};
|
||||||
|
|
||||||
function makeUsersSearchDictionary() {
|
function makeUsersSearchDictionary() {
|
||||||
// get public users list
|
|
||||||
const headers = new Headers({xhr: "xhr"})
|
const headers = new Headers({xhr: "xhr"})
|
||||||
const user_params = document.getElementById('user_params').value
|
const user_params = document.getElementById('user_params').value
|
||||||
return fetch(`/users.csv${user_params}`, {
|
return fetch(`/users.csv${user_params}`, {
|
||||||
|
@ -72,7 +71,6 @@ function openUserSpeedModal()
|
||||||
userSearchDictionaryState = "loading"
|
userSearchDictionaryState = "loading"
|
||||||
return makeUsersSearchDictionary();
|
return makeUsersSearchDictionary();
|
||||||
case "loading":
|
case "loading":
|
||||||
// this works because once the fetch completes, the first keystroke callback will fire and use the current value
|
|
||||||
return Promise.reject();
|
return Promise.reject();
|
||||||
case "ready":
|
case "ready":
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
|
@ -94,7 +92,6 @@ function populate_inline_user_modal(results, textbox)
|
||||||
user_index = 0;
|
user_index = 0;
|
||||||
inline_carot_modal.scrollTop = 0;
|
inline_carot_modal.scrollTop = 0;
|
||||||
inline_carot_modal.innerHTML = "";
|
inline_carot_modal.innerHTML = "";
|
||||||
// Not sure why the results is a Set... but oh well
|
|
||||||
let i = 0;
|
let i = 0;
|
||||||
for (let name of results)
|
for (let name of results)
|
||||||
{
|
{
|
||||||
|
@ -104,7 +101,6 @@ function populate_inline_user_modal(results, textbox)
|
||||||
user_option.tabIndex = 0;
|
user_option.tabIndex = 0;
|
||||||
let user_option_img = document.createElement("img");
|
let user_option_img = document.createElement("img");
|
||||||
user_option_img.className = "pp20";
|
user_option_img.className = "pp20";
|
||||||
// This is a bit
|
|
||||||
user_option_img.src = `/@${name}/pic`
|
user_option_img.src = `/@${name}/pic`
|
||||||
|
|
||||||
let user_option_text = document.createElement("span");
|
let user_option_text = document.createElement("span");
|
||||||
|
@ -119,7 +115,6 @@ function populate_inline_user_modal(results, textbox)
|
||||||
markdown(textbox)
|
markdown(textbox)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Pack
|
|
||||||
user_option.appendChild(user_option_img);
|
user_option.appendChild(user_option_img);
|
||||||
user_option.appendChild(user_option_text);
|
user_option.appendChild(user_option_text);
|
||||||
inline_carot_modal.appendChild(user_option);
|
inline_carot_modal.appendChild(user_option);
|
||||||
|
|
Loading…
Reference in New Issue