Close history dropdown on success. Avoids confusion.

This commit is contained in:
Tom Needham 2012-05-17 21:22:48 +00:00
parent 0aac70aaf1
commit 74d49920f2
1 changed files with 4 additions and 1 deletions

View File

@ -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 ) {