diff --git a/main/social/friends.php b/main/social/friends.php index d5b85904d0..73aa64de14 100755 --- a/main/social/friends.php +++ b/main/social/friends.php @@ -79,6 +79,18 @@ function clear_form () { $("div#div_qualify_image").html(""); $("div#div_info_user").html(""); } + + +function show_icon_edit(element_html) { + ident="#edit_image"; + $(ident).show(); +} + +function hide_icon_edit(element_html) { + ident="#edit_image"; + $(ident).hide(); +} + '; $interbreadcrumb[]= array ('url' =>'profile.php','name' => get_lang('Social')); diff --git a/main/social/group_add.php b/main/social/group_add.php index 7e9577c13c..69cea3248d 100755 --- a/main/social/group_add.php +++ b/main/social/group_add.php @@ -31,7 +31,16 @@ function text_longitud(){ }else{ textarea = document.forms[0].description.value; } -} +} +function show_icon_edit(element_html) { + ident="#edit_image"; + $(ident).show(); +} + +function hide_icon_edit(element_html) { + ident="#edit_image"; + $(ident).hide(); +} '; $table_message = Database::get_main_table(TABLE_MESSAGE); diff --git a/main/social/group_edit.php b/main/social/group_edit.php index 9a765390b0..3de0f10454 100755 --- a/main/social/group_edit.php +++ b/main/social/group_edit.php @@ -31,7 +31,16 @@ function textarea_maxlength(){ }else{ textarea = document.forms[0].description.value; } -} +} +function show_icon_edit(element_html) { + ident="#edit_image"; + $(ident).show(); +} + +function hide_icon_edit(element_html) { + ident="#edit_image"; + $(ident).hide(); +} '; $group_id = isset($_GET['id']) ? intval($_GET['id']) : intval($_POST['id']); diff --git a/main/social/group_invitation.php b/main/social/group_invitation.php index c416d54bc2..08a3850af6 100755 --- a/main/social/group_invitation.php +++ b/main/social/group_invitation.php @@ -20,7 +20,19 @@ api_block_anonymous_users(); $htmlHeadXtra[] = ''; //jQuery $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; - +$htmlHeadXtra[] = ''; $xajax = new xajax(); //$xajax->debugOn(); $xajax -> registerFunction ('search_users'); diff --git a/main/social/group_members.php b/main/social/group_members.php index 11b41d8443..891c851070 100755 --- a/main/social/group_members.php +++ b/main/social/group_members.php @@ -15,7 +15,19 @@ require_once api_get_path(LIBRARY_PATH).'social.lib.php'; $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; - +$htmlHeadXtra[] = ''; $this_section = SECTION_SOCIAL; $interbreadcrumb[]= array ('url' =>'home.php','name' => get_lang('Social')); diff --git a/main/social/group_waiting_list.php b/main/social/group_waiting_list.php index a1866bfa52..8f0ca02de9 100755 --- a/main/social/group_waiting_list.php +++ b/main/social/group_waiting_list.php @@ -14,7 +14,19 @@ require_once api_get_path(LIBRARY_PATH).'social.lib.php'; $htmlHeadXtra[] = ''; //jQuery $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; +$htmlHeadXtra[] = ''; $this_section = SECTION_SOCIAL; $interbreadcrumb[]= array ('url' =>'home.php','name' => get_lang('Social')); $interbreadcrumb[]= array ('url' =>'groups.php','name' => get_lang('Groups')); diff --git a/main/social/groups.php b/main/social/groups.php index ba0f227f78..6df2d5e7b9 100755 --- a/main/social/groups.php +++ b/main/social/groups.php @@ -112,7 +112,19 @@ jQuery(document).ready(function() { } }); - '; + + +function show_icon_edit(element_html) { + ident="#edit_image"; + $(ident).show(); +} + +function hide_icon_edit(element_html) { + ident="#edit_image"; + $(ident).hide(); +} + +'; $allowed_views = array('mygroups','newest','pop'); $interbreadcrumb[]= array ('url' =>'home.php','name' => get_lang('Social')); diff --git a/main/social/home.php b/main/social/home.php index ba9997a701..41bd580421 100755 --- a/main/social/home.php +++ b/main/social/home.php @@ -25,7 +25,19 @@ api_block_anonymous_users(); $htmlHeadXtra[] = ''; //jQuery $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; +$htmlHeadXtra[] = ''; //fast upload image if (api_get_setting('profile', 'picture') == 'true') { require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'; @@ -68,55 +80,13 @@ echo '
'; echo '
'; echo '