summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2015-03-26 11:59:30 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2015-03-26 11:59:30 +0100
commit30b745fc591adea9ca96d04d49afc657e44b31ba (patch)
treeedcb4c865f6ea8404a1b19b83dc0954bdb4b9a51 /core
parent07335c844a4ad6876ed4e713702ee7afffa875d5 (diff)
downloadnextcloud-server-30b745fc591adea9ca96d04d49afc657e44b31ba.tar.gz
nextcloud-server-30b745fc591adea9ca96d04d49afc657e44b31ba.zip
reintroduce quick animation for menus
Diffstat (limited to 'core')
-rw-r--r--core/js/js.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 31ac4313eee..a0a70e549e5 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -75,7 +75,7 @@ var OC={
appConfig: window.oc_appconfig || {},
theme: window.oc_defaults || {},
coreApps:['', 'admin','log','core/search','settings','core','3rdparty'],
- menuSpeed: 100,
+ menuSpeed: 50,
/**
* Get an absolute url to a file in an app
@@ -477,7 +477,7 @@ var OC={
$menuEl.addClass('menu');
$toggle.on('click.menu', function(event) {
if ($menuEl.is(OC._currentMenu)) {
- $menuEl.hide();
+ $menuEl.slideUp(OC.menuSpeed);
OC._currentMenu = null;
OC._currentMenuToggle = null;
return false;
@@ -487,7 +487,7 @@ var OC={
// close it
OC._currentMenu.hide();
}
- $menuEl.toggle();
+ $menuEl.slideToggle(OC.menuSpeed);
OC._currentMenu = $menuEl;
OC._currentMenuToggle = $toggle;
return false;
@@ -500,7 +500,7 @@ var OC={
unregisterMenu: function($toggle, $menuEl) {
// close menu if opened
if ($menuEl.is(OC._currentMenu)) {
- $menuEl.hide();
+ $menuEl.slideUp(OC.menuSpeed);
OC._currentMenu = null;
OC._currentMenuToggle = null;
}
@@ -1128,7 +1128,7 @@ function initCore() {
}
});
$('#settings #expand').click(function(event) {
- $('#settings #expanddiv').toggle();
+ $('#settings #expanddiv').slideToggle(OC.menuSpeed);
event.stopPropagation();
});
$('#settings #expanddiv').click(function(event){
@@ -1136,7 +1136,7 @@ function initCore() {
});
//hide the user menu when clicking outside it
$(document).click(function(){
- $('#settings #expanddiv').hide();
+ $('#settings #expanddiv').slideUp(OC.menuSpeed);
});
// move triangle of apps dropdown to align with app name triangle
@@ -1166,7 +1166,7 @@ function initCore() {
return false;
}
if (OC._currentMenu) {
- OC._currentMenu.hide();
+ OC._currentMenu.slideUp(OC.menuSpeed);
}
OC._currentMenu = null;
OC._currentMenuToggle = null;