Give share with search focus when sharing dropdown appears

remotes/origin/stable45
Michael Gapczynski 13 years ago
parent 9e4c3b8342
commit 269922543e
  1. 3
      core/js/share.js

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

Loading…
Cancel
Save