Changeset 20577

Show
Ignore:
Timestamp:
10/03/08 12:51:34 (3 months ago)
Author:
riaf
Message:

細かい調整とか

Location:
events/phpframework/rhaco/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/rhaco/trunk/library/model/Status.php

    r20573 r20577  
    5353        if(is_null($this->replyUserName) && preg_match('/^@([A-Za-z0-9_-]+)/', $this->comment, $match)){ 
    5454            $this->replyUserName = $match[1]; 
     55            $this->replyUserName = $match[1]; 
    5556            return $match[1]; 
    5657        } else { 
  • events/phpframework/rhaco/trunk/resources/templates/default/application.js

    r20575 r20577  
    4141        $.post( 
    4242                phwittr_url + 'status/update', 
    43                 {"comment": comment}, 
     43                {"comment": comment, "type": "json"}, 
    4444                function(response, status){ 
     45                        notice(response['message']); 
    4546                        if(response['error']){ 
    46                                 notice(response['message']); 
    4747                                $('#status_update textarea').val(message); 
    4848                        } else { 
    49                                 notice('status updated!'); 
    5049                                status_countup(); 
    5150                                status_load(response['status']); 
     
    6059 
    6160function status_load(status){ 
    62         d = new Date(); 
    63         d.setTime(status['createdAt']*1000); 
    6461        $('#timelines').prepend( 
    6562                '<dt>' + status['user'] + "</dt>\n" 
    6663                 + '<dd>' + status['comment'] + "</dd>\n" 
    67                  + '<dd class="meta"><a href="'+phwittr_url+'statuses/'+status['id']+'">' + d.toLocaleString() + "</a></dd>\n" 
     64                 + '<dd class="meta"><a href="'+phwittr_url+'statuses/'+status['id']+'">' + status['createdAt'] + "</a>" + status['replyTo'] 
     65                 + "</dd>\n" 
    6866        ); 
    6967}