Skip to:
Content

BuddyPress.org

Changeset 2049


Ignore:
Timestamp:
10/22/2009 12:15:06 PM (17 years ago)
Author:
apeatling
Message:

Fixes #1073 props MrMaz

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bp-themes/bp-sn-parent/_inc/js/ajax.js

    r2031 r2049  
    973973        );
    974974
    975         j("form#status-update-form").livequery('submit',
    976                 function() {
    977                         j.post( ajaxurl, {
    978                                 action: 'status_new_status',
    979                                 'cookie': encodeURIComponent(document.cookie),
    980                                 '_wpnonce': j('input#_wpnonce_add_status').val(),
    981                                 'status-update-input': j('#status-update-input').val()
    982                         },
    983                         function(response) {
    984                                 if ( response == "1" ) {                       
    985                                         j("div#user-status").slideUp(400,
    986                                                 function() {
    987                                                         j.post( ajaxurl, {
    988                                                                 action: 'status_show_status',
    989                                                                 'cookie': encodeURIComponent(document.cookie)
    990                                                         },
    991                                                         function(response) {                           
    992                                                                 j("div#user-status").html(response);
    993                                                                 j("div#user-status").slideDown(400);
    994                                                                 j(window).unbind('click');
    995                                                         });
    996                                                 }
    997                                         );
    998                                 }
    999                         });
    1000 
    1001                         return false;
    1002                 }
    1003         );
    1004 
    1005975        j("a#status-clear-status").livequery('click',
    1006976                function() {
Note: See TracChangeset for help on using the changeset viewer.