Skip to content
Snippets Groups Projects
Commit 7576dde0 authored by geez0x1's avatar geez0x1
Browse files

Update the modified date in UI on file reversion

parent 8d1cf791
Branches
No related tags found
No related merge requests found
...@@ -70,9 +70,9 @@ function revertFile(file, revision) { ...@@ -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)}) ); OC.Notification.show( t('files_version', 'Failed to revert {file} to revision {timestamp}.', {file:file, timestamp:formatDate(revision * 1000)}) );
} else { } else {
$('#dropdown').hide('blind', function() { $('#dropdown').hide('blind', function() {
$('#dropdown').closest('tr').find('.modified:first').html(relative_modified_date(revision));
$('#dropdown').remove(); $('#dropdown').remove();
$('tr').removeClass('mouseOver'); $('tr').removeClass('mouseOver');
// TODO also update the modified time in the web ui
}); });
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment