mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
only check if #dropdown hasClass drop-versions if a drop down is open. Otherwise it will never open the history drop-down
This commit is contained in:
parent
f571cfbf71
commit
9f0a4c8edb
1 changed files with 2 additions and 2 deletions
|
|
@ -21,11 +21,11 @@ $(document).ready(function(){
|
|||
}
|
||||
,function(filename){
|
||||
// Action to perform when clicked
|
||||
if (scanFiles.scanning || !$('#dropdown').hasClass('drop-versions')){return;}//workaround to prevent additional http request block scanning feedback
|
||||
if (scanFiles.scanning){return;}//workaround to prevent additional http request block scanning feedback
|
||||
|
||||
var file = $('#dir').val()+'/'+filename;
|
||||
// Check if drop down is already visible for a different file
|
||||
if (($('#dropdown').length > 0)) {
|
||||
if (($('#dropdown').length > 0) && $('#dropdown').hasClass('drop-versions') ) {
|
||||
if (file != $('#dropdown').data('file')) {
|
||||
$('#dropdown').hide('blind', function() {
|
||||
$('#dropdown').remove();
|
||||
|
|
|
|||
Loading…
Reference in a new issue