mirror of
https://github.com/nextcloud/server.git
synced 2024-08-30 17:57:26 +02:00
slight animation for the sidebar for better feedback what happens
This commit is contained in:
parent
41d044cf89
commit
fe8d13c935
@ -27,9 +27,9 @@
|
||||
*/
|
||||
exports.Apps.showAppSidebar = function($el) {
|
||||
var $appSidebar = $el || $('#app-sidebar');
|
||||
$appSidebar.removeClass('disappear');
|
||||
$appSidebar.removeClass('disappear')
|
||||
.show('slide', { direction: 'right' }, 200);
|
||||
$('#app-content').addClass('with-app-sidebar').trigger(new $.Event('appresized'));
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
@ -40,7 +40,10 @@
|
||||
*/
|
||||
exports.Apps.hideAppSidebar = function($el) {
|
||||
var $appSidebar = $el || $('#app-sidebar');
|
||||
$appSidebar.addClass('disappear');
|
||||
$appSidebar.hide('slide', { direction: 'right' }, 100,
|
||||
function() {
|
||||
$appSidebar.addClass('disappear');
|
||||
});
|
||||
$('#app-content').removeClass('with-app-sidebar').trigger(new $.Event('appresized'));
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user