]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added autoFocus to #shareWith autocomplete options
authorPete McFarlane <peterjohnmcfarlane@gmail.com>
Wed, 11 Sep 2013 10:45:32 +0000 (11:45 +0100)
committerPete McFarlane <peterjohnmcfarlane@gmail.com>
Wed, 11 Sep 2013 10:45:32 +0000 (11:45 +0100)
core/js/share.js

index 27c16f38b92d0d8da9d2e3b321efd68a3d884541..4ec3bb63e126ee0a53fd36746deaa2bf53573750 100644 (file)
@@ -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