1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 14:49:09 +00:00

Revert "[select2] share: fixup"

This reverts commit c6152d8f0e.
This commit is contained in:
lian
2018-08-03 16:06:46 +08:00
parent 57e2cef98b
commit c736ca1097

View File

@@ -53,7 +53,7 @@ define([
}).modal({focus:false});
}
this.$("#share-tabs").tabs();
this.$("#share-tabs").tabs({});
if (!this.repo_encrypted && app.pageOptions.can_generate_share_link) {
this.downloadLinkPanelInit();
@@ -690,13 +690,6 @@ define([
$add_item.after(new_item.el);
});
$table.removeClass('hide');
// 'share to user' is the first tab.
if ($panel.is(':visible')) {
$('[name="emails"]', $add_item).select2($.extend({
'width': '100%'
}, Common.contactInputOptionsForSelect2()));
}
},
error: function(xhr, textStatus, errorThrown) {
var err_msg = Common.prepareAjaxErrorMsg(xhr);