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

Revert "[select2] upgraded it to v4.0"

This reverts commit 62c3519e85.
This commit is contained in:
lian
2018-08-03 16:08:29 +08:00
parent 20cb4ce86f
commit ee8e4135ea
35 changed files with 4567 additions and 428 deletions

View File

@@ -130,7 +130,7 @@ define([
validate: true,
prepend: true,
success: function() {
$input.val(null).trigger('change');
$input.select2('val', '');
},
error: function(collection, response, options) {
var error_msg = Common.prepareAjaxErrorMsg(response);
@@ -148,7 +148,7 @@ define([
beforeSend: Common.prepareCSRFToken,
data: {'emails': input_val},
success: function(data) { // data: {success, failed}
$input.val(null).trigger('change');
$input.select2('val', '');
if (data.success.length > 0) {
_this.collection.add(data.success, {prepend: true});