From 59b579b8215583e0fca06536e7c149e988f6aaa9 Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Mon, 30 Nov 2015 10:25:16 -0800 Subject: [PATCH] Leave title for levels dialog --- src/js/views/index.js | 6 ++---- src/template.index.html | 8 ++++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/js/views/index.js b/src/js/views/index.js index b855a7d8..c44320fa 100644 --- a/src/js/views/index.js +++ b/src/js/views/index.js @@ -309,7 +309,7 @@ var ModalTerminal = ContainedBase.extend({ this.container = new ModalView(); this.JSON = { - title: options.title || 'Heed This Warning!' + title: options.title }; this.render(); @@ -344,9 +344,7 @@ var ModalAlert = ContainedBase.extend({ this.JSON.markdown = options.markdowns.join('\n'); } - this.container = new ModalTerminal({ - title: '' - }); + this.container = new ModalTerminal({}); this.render(); if (!options.wait) { diff --git a/src/template.index.html b/src/template.index.html index 07a3b378..bbfd3ab0 100644 --- a/src/template.index.html +++ b/src/template.index.html @@ -183,6 +183,14 @@ + <% if (title) { %> +
+ + + <%= title %> + +
+ <% } %>