diff options
author | Björn Schießle <schiessle@owncloud.com> | 2012-10-10 13:46:51 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2012-10-10 13:46:51 +0200 |
commit | 4a712bdd483cf3a25bc694e625bf1cb7499a96ed (patch) | |
tree | 1e3d9b1bde82febe73a310f6f8962538f4c3041c /apps/files_versions/js | |
parent | 33dcb3b1f4dad26c334bfdbddfb255817d4cedbf (diff) | |
download | nextcloud-server-4a712bdd483cf3a25bc694e625bf1cb7499a96ed.tar.gz nextcloud-server-4a712bdd483cf3a25bc694e625bf1cb7499a96ed.zip |
only check if #dropdown hasClass drop-versions if a drop down is open. Otherwise it will never open the history drop-down
Diffstat (limited to 'apps/files_versions/js')
-rw-r--r-- | apps/files_versions/js/versions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js index aa79cffeca4..87396cd0ba1 100644 --- a/apps/files_versions/js/versions.js +++ b/apps/files_versions/js/versions.js @@ -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(); |