Give share with search focus when sharing dropdown appears

This commit is contained in:
Michael Gapczynski 2012-07-31 14:48:19 -04:00
parent 9e4c3b8342
commit 269922543e
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,6 @@ OC.Share={
}
});
}
$('#dropdown').show('blind');
$('#shareWith').autocomplete({minLength: 2, source: function(search, response) {
// if (cache[search.term]) {
// response(cache[search.term]);
@ -127,6 +126,8 @@ OC.Share={
return false;
}
});
$('#dropdown').show('blind');
$('#shareWith').focus();
},
hideDropDown:function(callback) {
$('#dropdown').hide('blind', function() {