Merge pull request #9074 from geez0x1/master
Update the modified date in UI on file reversion
This commit is contained in:
commit
cc559c5b4b
|
@ -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
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue