修复typo

This commit is contained in:
sxw 2015-12-11 22:42:36 +08:00
parent 932d2ea3e7
commit c0a148b6f5

View File

@ -2,8 +2,8 @@ require(["jquery", "bsAlert", "csrfToken", "validator"], function ($, bsAlert, c
var applied_captcha = false;
$('form').validator().on('submit', function (e) {
if (!e.isDefaultPrevented()) {
var loca = location.href.split("/");
var token = loca[loca.length-2];
var splited_location = location.href.split("/");
var token = splited_location[splited_location.length-2];
var captcha = $("#captcha").val();
var password = $("#new_password").val();
$.ajax({