summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPete McFarlane <peterjohnmcfarlane@gmail.com>2013-09-11 11:45:32 +0100
committerPete McFarlane <peterjohnmcfarlane@gmail.com>2013-09-11 11:45:32 +0100
commit92b57c13c1fd68ad3f6f2e4751bd398f05f620aa (patch)
tree5aef2f94abb866abf1619e853ee2fd0b5999bf08
parent4ab8dc9c083f0fd90665ba1614c0600ef1b5da9f (diff)
downloadnextcloud-server-92b57c13c1fd68ad3f6f2e4751bd398f05f620aa.tar.gz
nextcloud-server-92b57c13c1fd68ad3f6f2e4751bd398f05f620aa.zip
Added autoFocus to #shareWith autocomplete options
-rw-r--r--core/js/share.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 27c16f38b92..4ec3bb63e12 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -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]) {
// response(cache[search.term]);
// } else {
@@ -423,7 +423,7 @@ OC.Share={
dateFormat : 'dd-mm-yy'
});
}
-}
+};
$(document).ready(function() {
@@ -512,7 +512,7 @@ $(document).ready(function() {
$(document).on('change', '#dropdown .permissions', function() {
if ($(this).attr('name') == 'edit') {
- var li = $(this).parent().parent()
+ var li = $(this).parent().parent();
var checkboxes = $('.permissions', li);
var checked = $(this).is(':checked');
// Check/uncheck Create, Update, and Delete checkboxes if Edit is checked/unck