0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Adding a warning message if js is not built

closes #1205
This commit is contained in:
Hannah Wolfe 2013-10-27 15:16:34 +00:00
parent 89937666e1
commit 6869c01a28
2 changed files with 7 additions and 0 deletions

View file

@ -34,6 +34,9 @@
};
Ghost.init = function () {
// remove the temporary message which appears
$('.js-msg').remove();
Ghost.router = new Ghost.Router();
// This is needed so Backbone recognizes elements already rendered server side

View file

@ -43,6 +43,10 @@
{{{body}}}
<div class="js-msg">
<p>Hello There! Looks like something went wrong with your JavaScript.</p>
<p>Either you need to enable JavaScript, or you haven't built the JavaScript files yet. See the README and CONTRIBUTING files for more info.</p>
</div>
</main>
<div id="modal-container">