diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-05-17 21:22:48 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-05-17 21:22:48 +0000 |
commit | 74d49920f2a89c721ee0c4de035b2d88c206deae (patch) | |
tree | 52795fc6cb2f979e1da1fbebd47d9d97ff9b4981 /apps/files_versions | |
parent | 0aac70aaf11ec86860d46c6334c17963de29baae (diff) | |
download | nextcloud-server-74d49920f2a89c721ee0c4de035b2d88c206deae.tar.gz nextcloud-server-74d49920f2a89c721ee0c4de035b2d88c206deae.zip |
Close history dropdown on success. Avoids confusion.
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/js/versions.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js index 61090f956f0..689d3a1eaf3 100644 --- a/apps/files_versions/js/versions.js +++ b/apps/files_versions/js/versions.js @@ -80,10 +80,13 @@ function createVersionsDropdown(filename, files) { success: function(response) { if (response.status=='error') { OC.dialogs.alert('Failed to revert '+file+' to revision '+formatDate(revision*1000)+'.','Failed to revert'); + } else { + $('#dropdown').hide('blind'); + // TODO also update the modified time in the web ui } } }); - + } function addVersion(revision ) { |