Changeset 20577
- Timestamp:
- 10/03/08 12:51:34 (3 months ago)
- Location:
- events/phpframework/rhaco/trunk
- Files:
-
- 2 modified
-
library/model/Status.php (modified) (1 diff)
-
resources/templates/default/application.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/rhaco/trunk/library/model/Status.php
r20573 r20577 53 53 if(is_null($this->replyUserName) && preg_match('/^@([A-Za-z0-9_-]+)/', $this->comment, $match)){ 54 54 $this->replyUserName = $match[1]; 55 $this->replyUserName = $match[1]; 55 56 return $match[1]; 56 57 } else { -
events/phpframework/rhaco/trunk/resources/templates/default/application.js
r20575 r20577 41 41 $.post( 42 42 phwittr_url + 'status/update', 43 {"comment": comment },43 {"comment": comment, "type": "json"}, 44 44 function(response, status){ 45 notice(response['message']); 45 46 if(response['error']){ 46 notice(response['message']);47 47 $('#status_update textarea').val(message); 48 48 } else { 49 notice('status updated!');50 49 status_countup(); 51 50 status_load(response['status']); … … 60 59 61 60 function status_load(status){ 62 d = new Date();63 d.setTime(status['createdAt']*1000);64 61 $('#timelines').prepend( 65 62 '<dt>' + status['user'] + "</dt>\n" 66 63 + '<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" 68 66 ); 69 67 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)