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:
Björn Schießle 2012-10-10 13:46:51 +02:00
parent 33dcb3b1f4
commit 4a712bdd48
1 changed files with 2 additions and 2 deletions

View File

@ -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();