* Attach click handler to dismiss an error modal
(id: string)
| 62 | * Attach click handler to dismiss an error modal |
| 63 | */ |
| 64 | private static attachDismissHandler (id: string): void { |
| 65 | $_(`[data-error="${id}"] button`).click(function () { |
| 66 | $_(`[data-error="${id}"]`).remove(); |
| 67 | FancyError.pop(); |
| 68 | }); |
| 69 | Prism?.highlightAll(); |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Register an error template by ID. |