Commit 61fdd137 by Dányi Bence

webui: fancy animations added to group hiding

parent b28bc4c2
...@@ -318,7 +318,7 @@ $(function() { ...@@ -318,7 +318,7 @@ $(function() {
hidden_groups_for_user.push(id); hidden_groups_for_user.push(id);
hidden_groups[current_user]=hidden_groups_for_user; hidden_groups[current_user]=hidden_groups_for_user;
window.localStorage.setItem('hidden_groups', JSON.stringify(hidden_groups)); window.localStorage.setItem('hidden_groups', JSON.stringify(hidden_groups));
$('#group-'+id).hide(); $('#group-'+id).slideUp(700);
} }
function hide_groups(){ function hide_groups(){
...@@ -346,7 +346,9 @@ $(function() { ...@@ -346,7 +346,9 @@ $(function() {
e.preventDefault(); e.stopPropagation(); e.preventDefault(); e.stopPropagation();
show_hidden_groups(); show_hidden_groups();
$('#groups > li').each(function(){ $('#groups > li').each(function(){
$(this).show(); if($(this).is(':hidden')){
$(this).slideDown(700);
}
}) })
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment