Give share with search focus when sharing dropdown appears
This commit is contained in:
parent
9e4c3b8342
commit
269922543e
|
@ -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…
Reference in New Issue