Skip to content

Commit

Permalink
send 했고 update는 아직 안 된 로그 스타일 구분
Browse files Browse the repository at this point in the history
  • Loading branch information
sim0629 committed May 11, 2012
1 parent 70b8f19 commit d399ed7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions static/js/sirc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ var add_process = function(xml, flag) {
var append_log = function(flag, datetime, source, message) {
var element = $('<li><div class="datetime">' + datetime_format(datetime) + '</div><div class="source">&lt;<span class="nick">' + html_encode(source) + '</span>&gt;</div><div class="message">' + url_detection(html_encode(message)) + '</div></li>');
if(flag == 'downdate') {
element.prependTo($('ul#log'));
last_downdate = datetime;
element.prependTo($('ul#log'));
}else {
element.appendTo($('ul#log')).attr('flag', flag);
if(flag != 'send') last_update = datetime;
else element.attr('data-theme', 'b');
element.appendTo($('ul#log')).attr('flag', flag);
}
if(flag != 'downdate')
scroll(SCROLL_END, 200);
Expand Down

0 comments on commit d399ed7

Please sign in to comment.