File size: 3.84Kb
function fave_group(id)
{
document.getElementById('fave_group_'+id).innerHTML = '<span class="Tw1nGo"></span>';
$.ajax({
url: "/files/js/count/fave_group.php?id="+id,
cache: false,
success: function(html)
{
$("#fave_group_"+id).html(html);
}
});
}
function public_type(type)
{
if (type == '1')
{
document.getElementById('public_type').style.display = 'block';
} else {
document.getElementById('public_type').style.display = 'none';
}
}
function show_gr_menu()
{
if (document.getElementById('show_gr_menu').style.display == 'block')
{
document.getElementById('show_gr_menu').style.display = 'none';
} else {
document.getElementById('show_gr_menu').style.display = 'block';
}
}
function post_options_box(){
if (document.getElementById('post_options_box').style.display == 'block')
{
document.getElementById('post_options_box').style.display = 'none';
document.getElementById('post_options_box_active').innerHTML = '<i class="i_icon"></i>';
} else {
document.getElementById('post_options_box').style.display = 'block';
document.getElementById('post_options_box_active').innerHTML = '<i class="i_icon" style="background-position: -166px;"></i>';
}
}
function show_m(id)
{
if (document.getElementById('show_m_'+id).style.display == 'block')
{
document.getElementById('show_m_'+id).style.display = 'none';
} else {
document.getElementById('show_m_'+id).style.display = 'block';
}
}
function like_komm(id){
$.ajax({
url: "/files/groups/php_js/like_komm.php?id="+id,
cache: false,
success: function(html)
{
$("#komm_like_who_"+id).html(html);
}
});
}
function like_wall(id){
$.ajax({
url: "/files/groups/php_js/like_post.php?id="+id,
cache: true,
success: function(html)
{
$("#like_wall_"+id).html(html);
}
});
}
function who_like_post(id){
document.getElementById('like_who_'+id).innerHTML = '<span class="Tw1nGo"></span>';
$.ajax({
url: "/files/groups/php_js/who_like.php?id="+id,
cache: true,
success: function(html)
{
$("#like_who_"+id).html(html);
}
});
}
function g_in(id)
{
document.getElementById('g_in_'+id).innerHTML = '<span class="Tw1nGo"></span>';
$.ajax({
url: "/files/groups/php_js/in.php?id="+id,
cache: false,
success: function(html)
{
$("#g_in_"+id).html(html);
}
});
}
function g_out(id)
{
document.getElementById('g_in_'+id).innerHTML = '<span class="Tw1nGo"></span>';
$.ajax({
url: "/files/groups/php_js/out.php?id="+id,
cache: false,
success: function(html)
{
$("#g_in_"+id).html(html);
}
});
}
function g_dell_no(id)
{
document.getElementById('g_in_'+id).innerHTML = '<span class="Tw1nGo"></span>';
$.ajax({
url: "/files/groups/php_js/dell_no.php?id="+id,
cache: false,
success: function(html)
{
$("#g_in_"+id).html(html);
}
});
}
function dell_file(id){
$.ajax({
url: "/files/groups/php_js/dell_file.php?id="+id,
cache: false,
success: function(html)
{
$("#attached_wrap").html(html);
}
});
}
function dell_file_post(post, id){
$.ajax({
url: '/files/groups/php_js/dell_file_post.php?post='+post+'&id='+id,
cache: false,
success: function(html)
{
$("#attached_wrap2").html(html);
}
});
}
function zakrep(id){
$.ajax({
url: "/files/groups/php_js/zakrep.php?id="+id,
cache: false,
success: function(html)
{
$("#zakrep_"+id).html(html);
}
});
}