~openteachermaintainers/openteacher/3.x

« back to all changes in this revision

Viewing changes to modules/org/openteacher/profileRunners/webGenerator/static/scr/404.js

  • Committer: Marten de Vries
  • Date: 2017-06-28 18:05:48 UTC
  • Revision ID: git-v1:b4c406307aa345c58b9904b76580f15c5bff2a4e
Move JS into npm modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
session.languageChanged.handle(function () {
2
 
        $("#notfound-page .subheader").text(_("Page not found"));
3
 
        $("#notfound-explanation").text(_("The page you requested doesn't exist. You could try going back to the start page."));
4
 
        $("#back-to-start").text(_("Back to the start page"));
5
 
});
6
 
 
7
 
$(function () {
8
 
        $("#back-to-start").click(function () {
9
 
                hasher.setHash("login");
10
 
        });
11
 
});
12
 
 
13
 
crossroads.bypassed.add(function () {
14
 
        show("#notfound-page");
15
 
});