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

Merge pull request #1301 from ErisDS/js-build-warn

Adding a warning message if js is not built
This commit is contained in:
Hannah Wolfe 2013-10-28 15:24:19 -07:00
commit ddece0464b
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">