]> source.dussan.org Git - nextcloud-server.git/commitdiff
Close history dropdown on success. Avoids confusion.
authorTom Needham <needham.thomas@gmail.com>
Thu, 17 May 2012 21:22:48 +0000 (21:22 +0000)
committerTom Needham <needham.thomas@gmail.com>
Thu, 17 May 2012 21:22:48 +0000 (21:22 +0000)
apps/files_versions/js/versions.js

index 61090f956f0e81008a3804de6e63466d573f56ef..689d3a1eaf387789a4f4584b8bfbe7e85583b113 100644 (file)
@@ -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 ) {