Add animation to app-content

This commit is contained in:
Julius Haertl 2016-07-30 16:24:04 +02:00
parent fe8d13c935
commit fdcba04c98
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
var $appSidebar = $el || $('#app-sidebar'); var $appSidebar = $el || $('#app-sidebar');
$appSidebar.removeClass('disappear') $appSidebar.removeClass('disappear')
.show('slide', { direction: 'right' }, 200); .show('slide', { direction: 'right' }, 200);
$('#app-content').addClass('with-app-sidebar').trigger(new $.Event('appresized')); $('#app-content').addClass('with-app-sidebar', 200).trigger(new $.Event('appresized'));
}; };
/** /**
@ -44,7 +44,7 @@
function() { function() {
$appSidebar.addClass('disappear'); $appSidebar.addClass('disappear');
}); });
$('#app-content').removeClass('with-app-sidebar').trigger(new $.Event('appresized')); $('#app-content').removeClass('with-app-sidebar', 100).trigger(new $.Event('appresized'));
}; };
/** /**