Added autoFocus to #shareWith autocomplete options
This commit is contained in:
parent
4ab8dc9c08
commit
92b57c13c1
1 changed files with 3 additions and 3 deletions
|
@ -227,7 +227,7 @@ OC.Share={
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$('#shareWith').autocomplete({minLength: 1, source: function(search, response) {
|
$('#shareWith').autocomplete({minLength: 1, autoFocus: true, source: function(search, response) {
|
||||||
// if (cache[search.term]) {
|
// if (cache[search.term]) {
|
||||||
// response(cache[search.term]);
|
// response(cache[search.term]);
|
||||||
// } else {
|
// } else {
|
||||||
|
@ -423,7 +423,7 @@ OC.Share={
|
||||||
dateFormat : 'dd-mm-yy'
|
dateFormat : 'dd-mm-yy'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
@ -512,7 +512,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
$(document).on('change', '#dropdown .permissions', function() {
|
$(document).on('change', '#dropdown .permissions', function() {
|
||||||
if ($(this).attr('name') == 'edit') {
|
if ($(this).attr('name') == 'edit') {
|
||||||
var li = $(this).parent().parent()
|
var li = $(this).parent().parent();
|
||||||
var checkboxes = $('.permissions', li);
|
var checkboxes = $('.permissions', li);
|
||||||
var checked = $(this).is(':checked');
|
var checked = $(this).is(':checked');
|
||||||
// Check/uncheck Create, Update, and Delete checkboxes if Edit is checked/unck
|
// Check/uncheck Create, Update, and Delete checkboxes if Edit is checked/unck
|
||||||
|
|
Loading…
Reference in a new issue