()
| 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": |
no test coverage detected