diff options
| author | sostler <sbostler@gmail.com> | 2010-05-24 21:26:16 -0400 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-05-24 21:26:16 -0400 |
| commit | 33dceacc8ee21e6afa3e87f1981f9cdd19e27446 (patch) | |
| tree | 9b57e8685238a8bf1ee3441367895a6afb02df98 /static/js | |
| parent | c6c11cceff6b522ef4a7bbfbc68a81ccccb6b994 (diff) | |
removed topic list code
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/pichat.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 84a9b79..516fd99 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -352,26 +352,6 @@ function isDuplicateMessage(m) { } } -var CurrentTopic = null; - -function isSameTopic(curTopic, newTopic) { - if (!!curTopic != !!newTopic) { return false; } - else if (!curTopic) { return false; } // => !newTopic also - else { - return curTopic.topic == newTopic.topic && - curTopic.deadline == newTopic.deadline && - curTopic.maker == newTopic.maker; - } -} - -function updateTopic(newTopic) { - if (isSameTopic(CurrentTopic, newTopic)) { return; } - alert('new topic'); - CurrentTopic = newTopic; - $('#topic').text(topic.topic); - -} - function refresh() { var onSuccess = function(json) { try { @@ -390,9 +370,6 @@ function refresh() { if (typeof UnseenMsgCounter !== 'undefined' && !HasFocus) { UnseenMsgCounter += messages.length; } - if (json.topic) { - updateTopic(json.topic); - } } catch(e) { if (IsAdmin && window.console) { console.error(e); |
