[Pkg-owncloud-commits] [owncloud] 02/67: only check if #dropdown hasClass drop-versions if a drop down is open. Otherwise it will never open the history drop-down
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:10:29 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.1
in repository owncloud.
commit 9f0a4c8edb846bf5217129319f1af35f6dc228c1
Author: Björn Schießle <schiessle at owncloud.com>
Date: Wed Oct 10 13:46:51 2012 +0200
only check if #dropdown hasClass drop-versions if a drop down is open. Otherwise it will never open the history drop-down
---
apps/files_versions/js/versions.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js
index aa79cff..87396cd 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();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list