diff --git a/js/vendor/nextcloud/share.js b/js/vendor/nextcloud/share.js index 6510c9031..f0e94fd99 100644 --- a/js/vendor/nextcloud/share.js +++ b/js/vendor/nextcloud/share.js @@ -403,7 +403,7 @@ } else { var title = t('gallery', 'No users or groups found for {search}', {search: $('#shareWith').val()}); - if (!view.configModel.get('allowGroupSharing')) { + if (!oc_appconfig.core.allowGroupSharing) { title = t('gallery', 'No users found for {search}', {search: $('#shareWith').val()}); } $('#shareWith').addClass('error') @@ -514,6 +514,12 @@ .appendTo(ul); }; + $('#shareWith').on('input', function () { + if ($(this).val().length < 2) { + $(this).removeClass('error').tooltip('hide'); + } + }); + if (link && linksAllowed && $('#email').length != 0) { $('#email').autocomplete({ minLength: 1,