From 49736e08cf7af99545b79f1e92607f052dfa9256 Mon Sep 17 00:00:00 2001 From: Isaac Flores Date: Tue, 10 Feb 2009 12:02:29 +0100 Subject: [PATCH] [svn r18400] logi changes - allow show and hide the groups, in social tool - (see FS#3628) --- main/social/group_contact.inc.php | 16 +++++++++------- main/social/index.php | 23 ++++++++++++++++++++--- 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/main/social/group_contact.inc.php b/main/social/group_contact.inc.php index d411d9f938..92ede43fc3 100755 --- a/main/social/group_contact.inc.php +++ b/main/social/group_contact.inc.php @@ -24,19 +24,20 @@ $list_groups=UserFriend::show_list_type_friends(); for ($p=0;$p -
 '; echo $friend_html; } else { $friend_html.= ''; $friend_html.=''; - $friend_html.='
   '.get_lang('NoHaveContactsInThisGroup'); - $friend_html.='
'; + $friend_html.='

'; + $friend_html.=' ';//
echo $friend_html; + echo '
'; } ?> - +
diff --git a/main/social/index.php b/main/social/index.php index 7db304c7f8..e156d81780 100755 --- a/main/social/index.php +++ b/main/social/index.php @@ -140,9 +140,26 @@ function search_image_social(element_html) { }); } function clear_form () { -$("input[@type=radio]").attr("checked", false); -$("div#div_qualify_image").html(""); -$("div#div_info_user").html(""); + $("input[@type=radio]").attr("checked", false); + $("div#div_qualify_image").html(""); + $("div#div_info_user").html(""); +} +function toogle_function (element_html){ + elem_id=$(element_html).attr("id"); + id_elem=elem_id.split("_"); + ident="div#div_group_"+id_elem[1]; + id_button="#btn_"+id_elem[1]; + elem_src=$(id_button).attr("src"); + image_show=elem_src.split("/"); + my_image=image_show[2]; + if (my_image=="visible.gif") { + $(ident).hide("slow"); + $(id_button).attr("src","../img/invisible_na.gif"); + } else { + $(ident).show("slow"); + $(id_button).attr("src","../img/visible.gif"); + } + } '; $htmlHeadXtra[] = '';