Change Dashboard Apps animation to slide up/down

This commit is contained in:
bergware
2018-03-10 00:03:40 +01:00
parent c4de8ac279
commit dcd14c1932
+3 -3
View File
@@ -55,7 +55,7 @@ function loadlist() {
if ($('.Panel.started').length===0) $('#noapps').show(); if ($('.Panel.started').length===0) $('#noapps').show();
} }
if ($('.Panel').length===0) $('#noapps').show(); if ($('.Panel').length===0) $('#noapps').show();
$('#apps_icons').fadeIn('slow'); $('#apps_icons').slideDown('slow');
context.init({preventDoubleContext:false}); context.init({preventDoubleContext:false});
}); });
} }
@@ -64,9 +64,9 @@ $(function() {
$('.appview').change(function() { $('.appview').change(function() {
$('.Panel').not('.started').finish().toggle('fast'); $('.Panel').not('.started').finish().toggle('fast');
if ($('.Panel').length===0 || ($('.appview').is(':checked') && $('.Panel.started').length===0)) { if ($('.Panel').length===0 || ($('.appview').is(':checked') && $('.Panel.started').length===0)) {
$('#noapps').fadeIn('fast'); $('#noapps').slideDown('fast');
} else { } else {
$('#noapps').fadeOut('fast'); $('#noapps').slideUp('fast');
} }
$.cookie('dashapps_view_mode',$('.appview').is(':checked') ? 'startedonly':'allapps',{expires:3650}); $.cookie('dashapps_view_mode',$('.appview').is(':checked') ? 'startedonly':'allapps',{expires:3650});
}); });