Skip to content

Commit

Permalink
Merge pull request #1301 from ErisDS/js-build-warn
Browse files Browse the repository at this point in the history
Adding a warning message if js is not built
  • Loading branch information
ErisDS committed Oct 28, 2013
2 parents 68f78c9 + 6869c01 commit ddece04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/client/init.js
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions core/server/views/default.hbs
Expand Up @@ -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">
Expand Down

0 comments on commit ddece04

Please sign in to comment.