Removed global client-side scripts array and refactored page-specific scripts, now that library code is loaded at once
This commit is contained in:
parent
29175bec5c
commit
6276392100
15 changed files with 26 additions and 32 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue