(element: SourceApiEntry)
| 95 | } |
| 96 | |
| 97 | private doLoad(element: SourceApiEntry) { |
| 98 | $.getJSON( |
| 99 | window.location.origin + this.base + 'source/builtin/load/' + element.lang + '/' + element.file, |
| 100 | response => this.onLoad(response.file), |
| 101 | ); |
| 102 | if (this.modal) { |
| 103 | BootstrapUtils.hideModal(this.modal); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | private static populate(root: JQuery, list: PopulateItem[]) { |
| 108 | root.find('li:not(.template)').remove(); |
no test coverage detected