1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 10:22:46 +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

@@ -59,7 +59,7 @@ define([
formatSelectionTooBig: gettext("You cannot select any more choices")
}));
$form.submit(function() {
$form.on('submit', function() {
var library_name = $.trim($('[name="library_name"]', $form).val());
var library_owner = $.trim($('[name="library_owner"]', $form).val());
var $error = $('.error', $form);
@@ -157,7 +157,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.");