MCPcopy Create free account
hub / github.com/Threadfin/Threadfin / show

Method show

ts/menu_ts.ts:812–1090  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

810 }
811
812 show(): void {
813 COLUMN_TO_SORT = -1
814 // Alten Inhalt löschen
815 var doc = document.getElementById(this.DocumentID)
816 doc.innerHTML = ""
817 showPreview(false)
818
819 // Überschrift
820 var popup_header = document.getElementById(this.HeaderID)
821 var headline: string[] = menuItems[this.menuID].headline
822
823 var menuKey = menuItems[this.menuID].menuKey
824 var h = this.createHeadline(headline)
825 var existingHeader = popup_header.querySelector('h3')
826 if(existingHeader) {
827 popup_header.replaceChild(h, existingHeader)
828 } else {
829 popup_header.appendChild(h)
830 }
831
832 var hr = this.createHR()
833 doc.appendChild(hr)
834
835 // Interaktion
836 var div = this.createInteraction()
837 doc.appendChild(div)
838 var interaction = document.getElementById(this.interactionID)
839 switch (menuKey) {
840 case "playlist":
841 var input = this.createInput("button", menuKey, "{{.button.new}}")
842 input.setAttribute("id", "-")
843 input.setAttribute("onclick", 'javascript: openPopUp("playlist")')
844 input.setAttribute('data-bs-toggle', 'modal')
845 input.setAttribute('data-bs-target', '#popup')
846 interaction.appendChild(input)
847 break;
848
849 case "filter":
850 var input = this.createInput("button", menuKey, "{{.button.new}}")
851 input.setAttribute("id", -1)
852 input.setAttribute("onclick", 'javascript: openPopUp("filter", this)')
853 input.setAttribute('data-bs-toggle', 'modal')
854 input.setAttribute('data-bs-target', '#popup')
855 interaction.appendChild(input)
856 break;
857
858
859 case "xmltv":
860 var input = this.createInput("button", menuKey, "{{.button.new}}")
861 input.setAttribute("id", "xmltv")
862 input.setAttribute("onclick", 'javascript: openPopUp("xmltv")')
863 input.setAttribute('data-bs-toggle', 'modal')
864 input.setAttribute('data-bs-target', '#popup')
865 interaction.appendChild(input)
866 break;
867
868 case "users":
869 var input = this.createInput("button", menuKey, "{{.button.new}}")

Callers 3

openThisMenuFunction · 0.95
showElementFunction · 0.45
showToastFunction · 0.45

Calls 15

createInputMethod · 0.95
createCellMethod · 0.95
showPreviewFunction · 0.70
showSettingsFunction · 0.70
showLogsFunction · 0.70
sortTableFunction · 0.70
createHeadlineMethod · 0.45
createHRMethod · 0.45
createInteractionMethod · 0.45
createDIVMethod · 0.45
createTABLEMethod · 0.45
createTableRowMethod · 0.45

Tested by

no test coverage detected