From f0b02873337ef2b5143224aa7f291ef935047ecf Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Thu, 26 Mar 2015 12:21:40 +0100 Subject: adjust animations of Share, Versions and others to OC.menuSpeed --- apps/files_versions/js/versions.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/files_versions/js') diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js index 1a47c1749f9..e86bb4c3307 100644 --- a/apps/files_versions/js/versions.js +++ b/apps/files_versions/js/versions.js @@ -40,6 +40,7 @@ $(document).ready(function(){ if ( $('#dropdown').hasClass('drop-versions') && file == $('#dropdown').data('file')) { createDropDown = false; } + $('#dropdown').slideUp(OC.menuSpeed); $('#dropdown').remove(); $('tr').removeClass('mouseOver'); } @@ -71,7 +72,7 @@ function revertFile(file, revision) { if (response.status === 'error') { OC.Notification.show( t('files_version', 'Failed to revert {file} to revision {timestamp}.', {file:file, timestamp:formatDate(revision * 1000)}) ); } else { - $('#dropdown').hide('blind', function() { + $('#dropdown').slideUp(OC.menuSpeed, function() { $('#dropdown').closest('tr').find('.modified:first').html(relative_modified_date(revision)); $('#dropdown').remove(); $('tr').removeClass('mouseOver'); @@ -175,13 +176,13 @@ function createVersionsDropdown(filename, files, fileList) { version.appendTo('#found_versions'); } - $('#dropdown').show('blind'); + $('#dropdown').slideDown(1000); } $(this).click( function(event) { if ($('#dropdown').has(event.target).length === 0 && $('#dropdown').hasClass('drop-versions')) { - $('#dropdown').hide('blind', function() { + $('#dropdown').slideUp(OC.menuSpeed, function() { $('#dropdown').remove(); $('tr').removeClass('mouseOver'); }); -- cgit v1.2.3