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

Disable focus when using placeholder

This commit is contained in:
zhengxie
2012-11-08 13:10:41 +08:00
parent 0fc569df98
commit 89f1fb13d7
5 changed files with 6 additions and 6 deletions

View File

@@ -265,12 +265,12 @@ $('.msg-delete').click(function() {
});
$('.grp-admin-add').click(function() {
$("#admin-add-form").modal({appendTo: "#main"});
$("#admin-add-form").modal({appendTo: "#main", focus: false});
addAutocomplete('#added-admin-name', '#admin-add-form', contact_list);
});
$('#grp-member-add').click(function() {
$("#member-add-form").modal({appendTo: "#main"});
$("#member-add-form").modal({appendTo: "#main", focus: false});
addAutocomplete('#added-member-name', '#member-add-form', contact_list);
return false;
});

View File

@@ -1,6 +1,6 @@
{% load i18n %}
$("#group-admin-add").click(function() {
$("#admin-add-form").modal({appendTo: "#main"});
$("#admin-add-form").modal({appendTo: "#main", focus: false});
addAutocomplete('#added-admin-name', '#admin-add-form', contact_list);
return false;
})

View File

@@ -1,6 +1,6 @@
{% load i18n %}
$("#group-member-add").click(function() {
$("#member-add-form").modal({appendTo: "#main"});
$("#member-add-form").modal({appendTo: "#main", focus:false});
addAutocomplete('#added-member-name', '#member-add-form', contact_list);
return false;
})

View File

@@ -270,7 +270,7 @@ $('#rm-shared-link').click(function() {
});
$('#send-shared-link').click(function() {
$("#link-send-form").modal({appendTo: "#main"});
$("#link-send-form").modal({appendTo: "#main", focus: false});
// link-send-form email autocomplete
var share_list = [], contact_email;

View File

@@ -16,7 +16,7 @@ $(function() {
$(".repo-share-btn").click(function() {
$("#repo_id").val($(this).attr("data"));
$("#repo-share-form").modal({appendTo: "#main"});
$("#repo-share-form").modal({appendTo: "#main", focus:false});
addAutocomplete('#email_or_group', '#repo-share-form', share_list);
});