Hide the dropdown if you click the share file action button
This commit is contained in:
parent
0f91438b80
commit
0ad0ed77c5
1 changed files with 5 additions and 1 deletions
|
@ -3,9 +3,13 @@ $(document).ready(function() {
|
||||||
FileActions.register('all', 'Share', OC.imagePath('core', 'actions/share'), function(filename) {
|
FileActions.register('all', 'Share', OC.imagePath('core', 'actions/share'), function(filename) {
|
||||||
if ($('#dropdown').length != 0) {
|
if ($('#dropdown').length != 0) {
|
||||||
$('#dropdown').hide('blind', function() {
|
$('#dropdown').hide('blind', function() {
|
||||||
|
var dropdownFile = $('#dropdown').data('file')
|
||||||
|
var file = $('#dir').val()+'/'+filename;
|
||||||
$('#dropdown').remove();
|
$('#dropdown').remove();
|
||||||
$('tr').removeClass('mouseOver');
|
$('tr').removeClass('mouseOver');
|
||||||
createDropdown(filename, $('#dir').val()+'/'+filename);
|
if (dropdownFile != file) {
|
||||||
|
createDropdown(filename, file);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
createDropdown(filename, $('#dir').val()+'/'+filename);
|
createDropdown(filename, $('#dir').val()+'/'+filename);
|
||||||
|
|
Loading…
Reference in a new issue