summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2015-03-26 18:07:35 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2015-03-26 18:07:35 +0100
commite3d60ee5b0b3bd6dab9a8067861c11131599b0a1 (patch)
tree2c60a460c4d7c285e233b405a2bbcc15fcb55210 /apps/files_versions
parenta8b756154a533a2618f03c54aca56af957da12ae (diff)
parentd1db727d1fba96dac59b42a62c49c32091216ef2 (diff)
downloadnextcloud-server-e3d60ee5b0b3bd6dab9a8067861c11131599b0a1.tar.gz
nextcloud-server-e3d60ee5b0b3bd6dab9a8067861c11131599b0a1.zip
Merge pull request #14958 from owncloud/dropdown-style
popover style for apps and user dropdown menus
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/js/versions.js7
1 files changed, 4 insertions, 3 deletions
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');
});