Close history dropdown on success. Avoids confusion.
This commit is contained in:
parent
0aac70aaf1
commit
74d49920f2
1 changed files with 4 additions and 1 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue