diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-17 18:57:52 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-17 18:57:52 -0400 |
commit | 5b42325b018dbc696ed932f701480715cb4b3ecb (patch) | |
tree | cfe7a8ec97ccf94673248ecbc8691814e66c125b /apps | |
parent | 74d49920f2a89c721ee0c4de035b2d88c206deae (diff) | |
download | nextcloud-server-5b42325b018dbc696ed932f701480715cb4b3ecb.tar.gz nextcloud-server-5b42325b018dbc696ed932f701480715cb4b3ecb.zip |
History dropdown clean-up
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_versions/js/versions.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js index 689d3a1eaf3..60acd88300a 100644 --- a/apps/files_versions/js/versions.js +++ b/apps/files_versions/js/versions.js @@ -29,8 +29,8 @@ function createVersionsDropdown(filename, files) { var html = '<div id="dropdown" class="drop" data-file="'+files+'">'; html += '<div id="private">'; - html += '<select data-placeholder="File Version" id="found_versions" class="chzen-select">'; - html += '<option value="">Saved versions</option>'; + html += '<select data-placeholder="Saved versions" id="found_versions" class="chzen-select">'; + html += '<option value=""></option>'; html += '</select>'; html += '</div>'; //html += '<input type="button" value="Revert file" onclick="revertFile()" />'; @@ -81,8 +81,11 @@ function createVersionsDropdown(filename, files) { 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 + $('#dropdown').hide('blind', function() { + $('#dropdown').remove(); + $('tr').removeClass('mouseOver'); + // TODO also update the modified time in the web ui + }); } } }); @@ -110,6 +113,6 @@ function createVersionsDropdown(filename, files) { } $('#dropdown').show('blind'); - $('#share_with').chosen(); + $('#found_versions').chosen(); } |