1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 10:26:17 +00:00

improved contact_add

This commit is contained in:
llj
2012-07-31 19:44:13 +08:00
parent 3467b9cf00
commit 7099f7b5d7
3 changed files with 36 additions and 41 deletions

View File

@@ -43,7 +43,11 @@ $(function() {
});
//repo-create-form
$('#repo-create').hover(
$('#repo-create')
.click(function() {
$('#repo-create-form').modal({appendTo: '#main', autoResize: true});
})
.hover(
function() {
$(this).css({'background-color': '#fff', 'cursor': 'pointer'});
},
@@ -51,9 +55,6 @@ $('#repo-create').hover(
$(this).css('background-color', '#f5f5f5');
}
);
$('#repo-create').click(function() {
$('#repo-create-form').modal({appendTo: '#main', autoResize: true});
});
$('#encrypt-switch').click(function () {
if ($(this).attr('checked')) {
$('#repo-create-form input[type="password"]').attr('disabled', false).removeClass('input-disabled');
@@ -125,4 +126,4 @@ $('#repo-create-submit').click(function() {
});
return false;
});
});