Close history dropdown on success. Avoids confusion.
This commit is contained in:
parent
0aac70aaf1
commit
74d49920f2
|
@ -80,6 +80,9 @@ function createVersionsDropdown(filename, files) {
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
if (response.status=='error') {
|
if (response.status=='error') {
|
||||||
OC.dialogs.alert('Failed to revert '+file+' to revision '+formatDate(revision*1000)+'.','Failed to revert');
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue