From: Björn Schießle Date: Tue, 23 Jul 2013 08:49:19 +0000 (+0200) Subject: only add versions if the drop down was added X-Git-Tag: v5.0.10~16^2~2^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=200ed0c469fc27aa0506457a86c6120afb76fbc8;p=nextcloud-server.git only add versions if the drop down was added --- diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js index 0b8bc41f255..f0c1f356f3b 100644 --- a/apps/files_versions/js/versions.js +++ b/apps/files_versions/js/versions.js @@ -51,6 +51,7 @@ function createVersionsDropdown(filename, files) { async: false, success: function( versions ) { + // first decide which kind of dialog we need if (versions) { var html = '