1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 13:50:07 +00:00

[upgrade jquery] modifications, & cleaned up code & files

This commit is contained in:
llj
2018-02-05 16:47:56 +08:00
parent 2d98cc405d
commit 88478dee1d
159 changed files with 591 additions and 21432 deletions

View File

@@ -75,7 +75,7 @@ define([
formatSelectionTooBig: gettext("You cannot select any more choices")
}));
$form.submit(function() {
$form.on('submit', function() {
var email = $.trim($('[name="email"]', $(this)).val());
var $submitBtn = $('[type="submit"]', $(this));
@@ -103,7 +103,7 @@ define([
error: function(xhr) {
var error_msg;
if (xhr.responseText) {
error_msg = $.parseJSON(xhr.responseText).error_msg;
error_msg = JSON.parse(xhr.responseText).error_msg;
} else {
error_msg = gettext("Failed. Please check the network.");
}