1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 02:42:47 +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

@@ -69,7 +69,7 @@ define([
formatSelectionTooBig: gettext("You cannot select any more choices")
}));
$form.submit(function() {
$form.on('submit', function() {
var group_name = $.trim($('[name="group_name"]', $form).val());
var group_owner = $.trim($('[name="group_owner"]', $form).val());
var $error = $('.error', $form);
@@ -162,7 +162,7 @@ define([
if (response['status'] == 401 || response['status'] == 403) {
err_msg = gettext("Permission error");
} else {
err_msg = $.parseJSON(response.responseText).error_msg;
err_msg = JSON.parse(response.responseText).error_msg;
}
} else {
err_msg = gettext("Failed. Please check the network.");