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

@@ -6,13 +6,12 @@ define([
'moment',
'simplemodal',
'select2',
'jquery.ui.tabs',
'sysadmin-app/views/share',
'app/views/dialogs/repo-history-settings',
'app/views/widgets/hl-item-view',
'app/views/widgets/dropdown'
], function($, _, Backbone, Common, Moment, Simplemodal,
Select2, Tabs, ShareView, HistorySettingsDialog,
Select2, ShareView, HistorySettingsDialog,
HLItemView, DropdownView) {
'use strict';
@@ -109,7 +108,7 @@ define([
formatSelectionTooBig: gettext("You cannot select any more choices")
}));
$form.submit(function() {
$form.on('submit', function() {
var email = $.trim($('[name="email"]', $(this)).val());
if (!email) {
return false;
@@ -138,7 +137,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.");
}