Removed global client-side scripts array and refactored page-specific scripts, now that library code is loaded at once

This commit is contained in:
Tobi Schäfer 2015-01-30 23:59:40 +01:00
parent 29175bec5c
commit 6276392100
15 changed files with 26 additions and 32 deletions

View file

@ -68,7 +68,7 @@
</div>
</form>
<script type="text/javascript">
scripts.push(function() {
$(function() {
$("form#login").on('submit', function (event) {
var name = $("#name").val();
$.ajax({
@ -129,7 +129,7 @@ scripts.push(function() {
</div>
</form>
<script type="text/javascript">
scripts.push(function() {
$(function() {
$("form#register").submit(function() {
var token = "<% session.token %>";
var password = $("#password").val();