]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update the modified date in UI on file reversion
authorgeez0x1 <geez0x1@users.noreply.github.com>
Tue, 17 Jun 2014 20:22:03 +0000 (22:22 +0200)
committergeez0x1 <geez0x1@users.noreply.github.com>
Tue, 17 Jun 2014 20:22:03 +0000 (22:22 +0200)
apps/files_versions/js/versions.js

index 942a1a929f796b56e8603e822a8e129113349a0a..64e0df7649005f0b56c678dc28fc53a40784fb42 100644 (file)
@@ -70,9 +70,9 @@ function revertFile(file, revision) {
                                OC.Notification.show( t('files_version', 'Failed to revert {file} to revision {timestamp}.', {file:file, timestamp:formatDate(revision * 1000)}) );
                        } else {
                                $('#dropdown').hide('blind', function() {
+                                       $('#dropdown').closest('tr').find('.modified:first').html(relative_modified_date(revision));
                                        $('#dropdown').remove();
                                        $('tr').removeClass('mouseOver');
-                                       // TODO also update the modified time in the web ui
                                });
                        }
                }