diff options
| author | sostler <sbostler@gmail.com> | 2010-04-25 13:37:21 -0400 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-04-25 13:37:21 -0400 |
| commit | 261c45adad88af2180005cd28fa4c7eff556999a (patch) | |
| tree | b45aea29eb3d1af45953f007b10cf78bd45922b2 /static/js/pichat.js | |
| parent | a0a50416bfb3072244269189b3293a1b690d13e0 (diff) | |
Reload chatroom when json.v exists and var Version is undefined or doesn't equal json.v
Diffstat (limited to 'static/js/pichat.js')
| -rw-r--r-- | static/js/pichat.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 74b959f..85fa398 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -352,7 +352,7 @@ function updateTopic(newTopic) { function refresh() { var onSuccess = function(json) { try { - if (typeof Version !== 'undefined' && Version != json.v) { + if (json.v && (typeof Version == 'undefined' || Version != json.v)) { location.reload(); } |
