View file xmyx.ru/files/js/wall.js

File size: 9.39Kb
function lm_top_notify(){
    $.ajax({
        url: "/files/js/count/gift.php",
        cache: false,
        success: function(html)
        {
            $("#lm_top_notify").html(html);
        }
    });
}
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 feed_wall_like(id){
    $.ajax({
        url: "/files/wall/php/like_post.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#feed_wall_like_"+id).html(html);
        }
    });
}
function feed_group_like(id){
    $.ajax({
        url: "/files/groups/php/like_post.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#feed_group_like_"+id).html(html);
        }
    });
}
function like_photo(id){
    document.getElementById('like_photo_'+id).innerHTML = '<span class="Tw1nGo"></span>';
    $.ajax({
        url: "/files/js/count/like.php?uid="+id,
        cache: true,
        success: function(html)
        {
            $("#like_photo_"+id).html(html);
        }
    });
}
function upload(id){
    document.getElementById('avka_profile_'+id).innerHTML = '<span class="Tw1nGo"></span>';
}
function who_like_photo(id){
    $.ajax({
        url: "/files/js/count/who_like.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#like_who_"+id).html(html);
        }
    });
}
function unban_user(id){
    document.getElementById('unban_user_'+id).innerHTML = '<span class="Tw1nGo"></span>';
    $.ajax({
        url: "/files/js/count/black.php?uid="+id,
        cache: true,
        success: function(html)
        {
            $("#unban_user_"+id).html(html);
        }
    });
}
function fave_user(id){
    document.getElementById('fave_user_'+id).innerHTML = '<span class="Tw1nGo"></span>';
    $.ajax({
        url: "/files/js/count/fave_people.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#fave_user_"+id).html(html);
        }
    });
}
function votes(id){
    if (document.getElementById('votes_'+id).style.display == 'block')
    {
        document.getElementById('votes_'+id).style.display = 'none';
    } else {
        document.getElementById('votes_'+id).style.display = 'block';
    }
}
function show_menu(id){
    if (document.getElementById('show_menu'+id).style.display == 'block')
    {
        document.getElementById('show_menu'+id).style.display = 'none';
    } else {
        document.getElementById('show_menu'+id).style.display = 'block';
    }
}
function votes_golos(id){
    if (document.getElementById('rate_wrap'+id).style.display == 'block')
    {
        document.getElementById('rate_wrap'+id).style.display = 'none';
	document.getElementById('rate_wrap_x'+id).style.display = 'block';

    }else{
        document.getElementById('rate_wrap_x'+id).style.display = 'block';
        document.getElementById('rate_wrap'+id).style.display = 'none';

    }
}
function votes_cancel(id){
    if (document.getElementById('rate_wrap_x'+id).style.display == 'block')
    {
        document.getElementById('rate_wrap_x'+id).style.display = 'none';
        document.getElementById('rate_wrap'+id).style.display = 'block';

    }else{
	document.getElementById('rate_wrap_x'+id).style.display = 'none';
        document.getElementById('rate_wrap'+id).style.display = 'block';
    }
}

/*- Стена групп -*/

function g_in(id){
    document.getElementById('g_in_'+id).innerHTML = '<span class="Tw1nGo"></span>';
    $.ajax({
        url: "/files/groups/php/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/out.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#g_in_"+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 g_dell_no(id){
    document.getElementById('g_in_'+id).innerHTML = '<span class="Tw1nGo"></span>';
    $.ajax({
        url: "/files/groups/php/dell_no.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#g_in_"+id).html(html);
        }
    });
}
function dell_f_gr(id){
    $.ajax({
        url: "/files/groups/php/dell_file.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#attach_wrap_gr").html(html);
        }
    });
}
function dell_fi_gr(id){
    $.ajax({
        url: "/files/groups/php/dell_filep.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#attach_wrap_gr").html(html);
        }
    });
}
function dell_f_post_gr(post, id){
    $.ajax({
        url: '/files/groups/php/dell_file_post.php?post='+post+'&id='+id,
        cache: false,
        success: function(html)
        {
            $("#attached_wrap2_gr").html(html);
        }
    });
}
function like_komm_gr(id){
    $.ajax({
        url: "/files/groups/php/like_komm.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#komm_like_who_gr_"+id).html(html);
        }
    });
}
function like_wall_gr(id){
    $.ajax({
        url: "/files/groups/php/like_post.php?id="+id,
        cache: true,
        success: function(html)
        {
            $("#like_wall_gr_"+id).html(html);
        }
    });
}
function who_like_post_gr(id){
    document.getElementById('like_who_gr_'+id).innerHTML = '<span class="Tw1nGo"></span>';
    $.ajax({
        url: "/files/groups/php/who_like.php?id="+id,
        cache: true,
        success: function(html)
        {
            $("#like_who_gr_"+id).html(html);
        }
    });
}
function zakrep_gr(id){
    $.ajax({
        url: "/files/groups/php/zakrep.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#zakrep_gr_"+id).html(html);
        }
    });
}
function show_gro(id){
    if (document.getElementById('show_gro'+id).style.display == 'block')
    {
        document.getElementById('show_gro'+id).style.display = 'none';
    } else {
        document.getElementById('show_gro'+id).style.display = 'block';
    }
}
/*- Стена юзеров-*/

function dell_file(id){
    $.ajax({
        url: "/files/wall/php/dell_file.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#attached_wrap").html(html);
        }
    });
}
function dell_filep(id){
    $.ajax({
        url: "/files/wall/php/dell_filep.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#attached_wrap").html(html);
        }
    });
}
function dell_f_us(id){
    $.ajax({
        url: "/files/wall/php/dell_file.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#attached_wrap").html(html);
        }
    });
}
function dell_file_post(post, id){
    $.ajax({
        url: '/files/wall/php/dell_file_post.php?post='+post+'&id='+id,
        cache: false,
        success: function(html)
        {
            $("#attached_wrap2").html(html);
        }
    });
}
function zakrep(id){
    $.ajax({
        url: "/files/wall/php/zakrep.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#zakrep_"+id).html(html);
        }
    });
}
function like_komm(id){
    $.ajax({
        url: "/files/wall/php/like_komm.php?id="+id,
        cache: false,
        success: function(html)
        {
            $("#komm_like_who_"+id).html(html);
        }
    });
}
function like_wall(id){
    $.ajax({
        url: "/files/wall/php/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/wall/php/who_like.php?id="+id,
        cache: true,
        success: function(html)
        {
            $("#like_who_"+id).html(html);
        }
    });
}