Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/13/2008 07:02:15 PM (18 years ago)
Author:
apeatling
Message:
  • Added autocomplete of friends usernames
  • Fixed bugs with deleting messages
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-ajax.php

    r431 r659  
    2222        } else {
    2323                $result['message'] = '<img src="' . $bp['messages']['image_base'] . '/warning.gif" alt="Warning" /> &nbsp;' . $result['message'];
    24                 echo "-1|" . $result['message'];
     24                echo "-1[[split]]" . $result['message'];
    2525        }
    2626}
     
    3131
    3232        if ( !isset($_POST['thread_ids']) ) {
    33                 echo "-1|" . __('There was a problem marking messages as unread.', 'buddypress');
     33                echo "-1[[split]]" . __('There was a problem marking messages as unread.', 'buddypress');
    3434        } else {
    3535                $thread_ids = explode( ',', $_POST['thread_ids'] );
     
    4646       
    4747        if ( !isset($_POST['thread_ids']) ) {
    48                 echo "-1|" . __('There was a problem marking messages as read.', 'buddypress');
     48                echo "-1[[split]]" . __('There was a problem marking messages as read.', 'buddypress');
    4949        } else {
    5050                $thread_ids = explode( ',', $_POST['thread_ids'] );
     
    6161
    6262        if ( !isset($_POST['thread_ids']) ) {
    63                 echo "-1|" . __('There was a problem deleting messages.', 'buddypress');
     63                echo "-1[[split]]" . __( 'There was a problem deleting messages.', 'buddypress' );
    6464        } else {
    6565                $thread_ids = explode( ',', $_POST['thread_ids'] );
     
    6969                }
    7070               
    71                 echo __('Messages deleted.', 'buddypress');
     71                _e('Messages deleted.', 'buddypress');
    7272        }
    7373}
     
    7878
    7979        if ( !isset($_POST['notice_id']) ) {
    80                 echo "-1|" . __('There was a problem closing the notice.', 'buddypress');
     80                echo "-1[[split]]" . __('There was a problem closing the notice.', 'buddypress');
    8181        } else {
    8282                $notice_ids = get_usermeta( $userdata->ID, 'closed_notices' );
Note: See TracChangeset for help on using the changeset viewer.