mirror of
https://github.com/nextcloud/server.git
synced 2026-03-02 21:41:12 -05:00
Remove the history dropdown before creating a new one
This commit is contained in:
parent
122d1efecf
commit
fcb4d2aaee
1 changed files with 11 additions and 3 deletions
|
|
@ -16,9 +16,17 @@ $(document).ready(function(){
|
|||
if (scanFiles.scanning){return;}//workaround to prevent additional http request block scanning feedback
|
||||
|
||||
var file = $('#dir').val()+'/'+filename;
|
||||
|
||||
createVersionsDropdown(filename, file)
|
||||
|
||||
// Check if drop down is already visible for a different file
|
||||
if (($('#dropdown').length > 0)) {
|
||||
if (file != $('#dropdown').data('file')) {
|
||||
$('#dropdown').hide('blind', function() {
|
||||
$('tr').removeClass('mouseOver');
|
||||
createVersionsDropdown(filename, file);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
createVersionsDropdown(filename, file);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue