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