()
| 19 | } |
| 20 | |
| 21 | createWizard():void { |
| 22 | var headline = this.createCategoryHeadline(this.headline) |
| 23 | var key = this.key |
| 24 | var content:PopupContent = new PopupContent() |
| 25 | var description:string |
| 26 | |
| 27 | var doc = document.getElementById(this.DocumentID) |
| 28 | doc.innerHTML = "" |
| 29 | doc.appendChild(headline) |
| 30 | |
| 31 | switch (key) { |
| 32 | case "tuner": |
| 33 | var text = new Array() |
| 34 | var values = new Array() |
| 35 | |
| 36 | for (var i = 1; i <= 100; i++) { |
| 37 | text.push(i) |
| 38 | values.push(i) |
| 39 | } |
| 40 | |
| 41 | var select = content.createSelect(text, values, "1", key) |
| 42 | select.setAttribute("class", "wizard") |
| 43 | select.id = key |
| 44 | doc.appendChild(select) |
| 45 | |
| 46 | description = "{{.wizard.tuner.description}}" |
| 47 | |
| 48 | break; |
| 49 | |
| 50 | case "epgSource": |
| 51 | var text:any[] = ["PMS", "XEPG"] |
| 52 | var values:any[] = ["PMS", "XEPG"] |
| 53 | |
| 54 | var select = content.createSelect(text, values, "XEPG", key) |
| 55 | select.setAttribute("class", "wizard") |
| 56 | select.id = key |
| 57 | doc.appendChild(select) |
| 58 | |
| 59 | description = "{{.wizard.epgSource.description}}" |
| 60 | |
| 61 | break |
| 62 | |
| 63 | case "m3u": |
| 64 | var input = content.createInput("text", key, "") |
| 65 | input.setAttribute("placeholder", "{{.wizard.m3u.placeholder}}") |
| 66 | input.setAttribute("class", "wizard") |
| 67 | input.id = key |
| 68 | doc.appendChild(input) |
| 69 | |
| 70 | description = "{{.wizard.m3u.description}}" |
| 71 | |
| 72 | break |
| 73 | |
| 74 | case "xmltv": |
| 75 | var input = content.createInput("text", key, "") |
| 76 | input.setAttribute("placeholder", "{{.wizard.xmltv.placeholder}}") |
| 77 | input.setAttribute("class", "wizard") |
| 78 | input.id = key |
no test coverage detected