diff options
| author | sostler <sbostler@gmail.com> | 2010-04-25 11:46:37 -0400 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-04-25 11:46:37 -0400 |
| commit | fd2766f7112856df57c68f9d32a2c92b108fdcb8 (patch) | |
| tree | 393a2d497365f5cf887e77ff1148996169052909 /static/js/pichat.js | |
| parent | b9529fed21e0d4594dcb7aaa165247514ffbd4eb (diff) | |
Added version numbers to chat api
Diffstat (limited to 'static/js/pichat.js')
| -rw-r--r-- | static/js/pichat.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 6279e48..db49bb1 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -352,6 +352,10 @@ function updateTopic(newTopic) { function refresh() { var onSuccess = function(json) { try { + if (Version != json.v) { + location.reload(); + } + Timestamp = json.timestamp; $.map(json.messages, function(msg){ MessageContentCache[msg.msg_id.toString()] = msg.content }) |
