add moment js

This commit is contained in:
Philip Häusler 2014-08-23 15:59:18 +02:00
parent 66f166399c
commit 6bfa410f90
4 changed files with 19 additions and 2 deletions

View File

@ -246,7 +246,8 @@ echo template_render('../templates/layout.html', array(
'menu' => make_menu(),
'content' => $content,
'header_toolbar' => header_toolbar(),
'faq_url' => $faq_url
'faq_url' => $faq_url,
'locale' => $_SESSION['locale']
));
counter();

10
public/js/moment-with-locales.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -12,7 +12,8 @@
<meta name="revisit-after" content="1 days" />
<script type="text/javascript" src="vendor/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="vendor/bootstrap-3.2.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="css/forms.js"></script>
<script type="text/javascript" src="js/forms.js"></script>
<script type="text/javascript" src="js/moment-with-locales.min.js"></script>
<link rel="stylesheet" type="text/css" href="vendor/bootstrap-3.2.0/css/theme%theme%.css" />
<link rel="stylesheet" type="text/css" href="vendor/icomoon/style.css" />
%atom_link%
@ -36,5 +37,10 @@
</div>
</div>
</div>
<script type="text/javascript">
$(function() {
moment.locale("%locale%");
});
</script>
</body>
</html>