diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-04-27 20:08:00 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-04-27 20:08:00 +0000 |
commit | df6c22c4cb0964353414277b89f47151ff9cfd9d (patch) | |
tree | bcbc17441d6a77fdc67532acd6fb6dc645982c37 /js/util.js | |
parent | efe8c47d7d9e91eb8308845b8b0717e84e36e346 (diff) | |
parent | 8cf8298dc02b1373fed53eb95982a33b969b42ee (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'js/util.js')
-rw-r--r-- | js/util.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/js/util.js b/js/util.js index 15a14625c..f15c4f2bb 100644 --- a/js/util.js +++ b/js/util.js @@ -188,11 +188,15 @@ $(document).ready(function(){ alert(result); } else { - $("#notices_primary .notices").prepend(document._importNode($("li", xml).get(0), true)); - $("#notices_primary .notice:first").css({display:"none"}); - $("#notices_primary .notice:first").fadeIn(2500); - NoticeHover(); - NoticeReply(); + li = $("li", xml).get(0); + id = li.id; + if ($("#"+li.id).length == 0) { + $("#notices_primary .notices").prepend(document._importNode(li, true)); + $("#notices_primary .notice:first").css({display:"none"}); + $("#notices_primary .notice:first").fadeIn(2500); + NoticeHover(); + NoticeReply(); + } } $("#notice_data-text").val(""); counter(); |