Changeset 20494

Show
Ignore:
Timestamp:
10/02/08 18:40:43 (3 months ago)
Author:
sabel
Message:

update javascript

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/sabel/trunk/public/js/Status.js

    r20065 r20494  
    8585  insertUsername: function(evt) { 
    8686    var text = "@" + Sabel.Event.getTarget(evt).getAttribute("username") + " "; 
    87     this.comment.value = text; 
     87    this.comment.value = text + this.comment.value.replace(/^@[^\s]+\s/, ""); 
    8888    this.charCounter.innerHTML = this.COMMENT_MAX_LENGTH - text.length; 
    8989    this.charCounter.style.color = "#bbb";