close-button for share_dropdown
This commit is contained in:
parent
fe364656a4
commit
3bc3d4c9f3
|
@ -211,6 +211,7 @@ OC.Share={
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
html += '<p align="right"><button class="icon-close share-dropdown-close" /></p>';
|
||||||
html += '<input id="shareWith" type="text" placeholder="'+t('core', 'Share with user or group …')+'" />';
|
html += '<input id="shareWith" type="text" placeholder="'+t('core', 'Share with user or group …')+'" />';
|
||||||
html += '<ul id="shareWithList">';
|
html += '<ul id="shareWithList">';
|
||||||
html += '</ul>';
|
html += '</ul>';
|
||||||
|
@ -552,6 +553,10 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on('click', '.share-dropdown-close', function(event) {
|
||||||
|
OC.Share.hideDropDown();
|
||||||
|
});
|
||||||
|
|
||||||
$(this).click(function(event) {
|
$(this).click(function(event) {
|
||||||
var target = $(event.target);
|
var target = $(event.target);
|
||||||
var isMatched = !target.is('.drop, .ui-datepicker-next, .ui-datepicker-prev, .ui-icon')
|
var isMatched = !target.is('.drop, .ui-datepicker-next, .ui-datepicker-prev, .ui-icon')
|
||||||
|
|
Loading…
Reference in New Issue