MCPcopy Create free account
hub / github.com/SKVNDR/FastDork / selectListAndRefreshTextarea

Function selectListAndRefreshTextarea

Script/FastDork.js:813–835  ·  view source on GitHub ↗
(
    listKey,
    {
      switchToEditList = false,
      focusTextarea = false,
      scrollToBottom = false,
    } = {}
  )

Source from the content-addressed store, hash-verified

811 return getFirstAvailableImportListKey();
812 }
813 async function selectListAndRefreshTextarea(
814 listKey,
815 {
816 switchToEditList = false,
817 focusTextarea = false,
818 scrollToBottom = false,
819 } = {}
820 ) {
821 if (!listKey || !UI.listTab2) return false;
822 if (!selectOptionByValue(UI.listTab2, listKey)) {
823 console.warn(`[selectListAndRefreshTextarea] List not found: ${listKey}`);
824 return false;
825 }
826
827 await loadSelectedDorkListContent();
828 if (switchToEditList) {
829 showDorkList({ focusTextarea });
830 }
831 if (scrollToBottom) {
832 scrollPayloadToBottom();
833 }
834 return true;
835 }
836 function resetDorkListSelections() {
837 UI.allListDropdowns.forEach((list) => {
838 if (list) list.value = "0";

Callers 4

setupImportButtonFunction · 0.85
applyImportStatusFunction · 0.85

Calls 4

selectOptionByValueFunction · 0.85
showDorkListFunction · 0.85
scrollPayloadToBottomFunction · 0.85

Tested by

no test coverage detected