mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
fix bug in autocomplete
This commit is contained in:
@@ -68,10 +68,10 @@ var contact_list = [];
|
||||
{% for contact in contacts %}
|
||||
contact_list.push('{{ contact.contact_email }}');
|
||||
{% endfor %}
|
||||
addAutocomplete('#added-member-name', '#member-add-form', contact_list);
|
||||
|
||||
$("#member-add").click(function() {
|
||||
$("#member-add-form").modal({appendTo: "#main"});
|
||||
addAutocomplete('#added-member-name', '#member-add-form', contact_list);
|
||||
return false;
|
||||
});
|
||||
|
||||
|
@@ -121,11 +121,10 @@ $(function() {
|
||||
share_list.push('{{ group.props.group_name }} <{{ group.props.creator_name }}>');
|
||||
{% endfor %}
|
||||
|
||||
addAutocomplete('#to_email', '#repo-share-form', share_list);
|
||||
|
||||
$(".repo-share-btn").click(function() {
|
||||
$("#share_repo_id").val($(this).attr("data"));
|
||||
$("#repo-share-form").modal({appendTo: "#main", containerCss:{padding:18}});
|
||||
$("#repo-share-form").modal({appendTo: "#main"});
|
||||
addAutocomplete('#to_email', '#repo-share-form', share_list);
|
||||
});
|
||||
|
||||
//check before post
|
||||
|
Reference in New Issue
Block a user