Skip to content
Snippets Groups Projects
Commit 0d492afe authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #5169 from owncloud/sharingdropdown-uxbugfixes

Sharing dropdown bug fixes
parents 2b3c3516 e97aaee1
No related branches found
No related tags found
No related merge requests found
......@@ -350,7 +350,7 @@ OC.Share={
if (mailSend === '1') {
checked = 'checked';
}
html += '<input type="checkbox" name="mailNotification" class="mailNotification" ' + checked + ' />'+t('core', 'notify user by email')+'</label>';
html += '<label><input type="checkbox" name="mailNotification" class="mailNotification" ' + checked + ' />'+t('core', 'notify user by email')+'</label>';
}
if (possiblePermissions & OC.PERMISSION_CREATE || possiblePermissions & OC.PERMISSION_UPDATE || possiblePermissions & OC.PERMISSION_DELETE) {
if (editChecked == '') {
......@@ -476,7 +476,7 @@ $(document).ready(function() {
$(this).click(function(event) {
var target = $(event.target);
var isMatched = !target.is('.drop, .ui-datepicker-next, .ui-datepicker-prev, .ui-icon')
&& !target.closest('#ui-datepicker-div').length;
&& !target.closest('#ui-datepicker-div').length && !target.closest('.ui-autocomplete').length;
if (OC.Share.droppedDown && isMatched && $('#dropdown').has(event.target).length === 0) {
OC.Share.hideDropDown();
}
......@@ -502,6 +502,7 @@ $(document).ready(function() {
$(document).on('click', '#dropdown .showCruds', function() {
$(this).parent().find('.cruds').toggle();
return false;
});
$(document).on('click', '#dropdown .unshare', function() {
......@@ -519,6 +520,7 @@ $(document).ready(function() {
$('#expiration').hide();
}
});
return false;
});
$(document).on('change', '#dropdown .permissions', function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment