MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / show

Method show

html/js/menu_ts.js:650–872  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

648 return input;
649 }
650 show() {
651 COLUMN_TO_SORT = -1;
652 // Alten Inhalt löschen
653 var doc = document.getElementById(this.DocumentID);
654 doc.innerHTML = "";
655 showPreview(false);
656 // Überschrift
657 var popup_header = document.getElementById(this.HeaderID);
658 var headline = menuItems[this.menuID].headline;
659 var menuKey = menuItems[this.menuID].menuKey;
660 var h = this.createHeadline(headline);
661 var existingHeader = popup_header.querySelector('h3');
662 if (existingHeader) {
663 popup_header.replaceChild(h, existingHeader);
664 }
665 else {
666 popup_header.appendChild(h);
667 }
668 var hr = this.createHR();
669 doc.appendChild(hr);
670 // Interaktion
671 var div = this.createInteraction();
672 doc.appendChild(div);
673 var interaction = document.getElementById(this.interactionID);
674 switch (menuKey) {
675 case "playlist":
676 var input = this.createInput("button", menuKey, "{{.button.new}}");
677 input.setAttribute("id", "-");
678 input.setAttribute("onclick", 'javascript: openPopUp("playlist")');
679 input.setAttribute('data-bs-toggle', 'modal');
680 input.setAttribute('data-bs-target', '#popup');
681 interaction.appendChild(input);
682 break;
683 case "filter":
684 var input = this.createInput("button", menuKey, "{{.button.new}}");
685 input.setAttribute("id", -1);
686 input.setAttribute("onclick", 'javascript: openPopUp("filter", this)');
687 input.setAttribute('data-bs-toggle', 'modal');
688 input.setAttribute('data-bs-target', '#popup');
689 interaction.appendChild(input);
690 break;
691 case "xmltv":
692 var input = this.createInput("button", menuKey, "{{.button.new}}");
693 input.setAttribute("id", "xmltv");
694 input.setAttribute("onclick", 'javascript: openPopUp("xmltv")');
695 input.setAttribute('data-bs-toggle', 'modal');
696 input.setAttribute('data-bs-target', '#popup');
697 interaction.appendChild(input);
698 break;
699 case "users":
700 var input = this.createInput("button", menuKey, "{{.button.new}}");
701 input.setAttribute("id", "users");
702 input.setAttribute("onclick", 'javascript: openPopUp("users")');
703 input.setAttribute('data-bs-toggle', 'modal');
704 input.setAttribute('data-bs-target', '#popup');
705 interaction.appendChild(input);
706 break;
707 case "mapping":

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