summaryrefslogtreecommitdiff
path: root/static/js/pichat.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/pichat.js')
-rw-r--r--static/js/pichat.js23
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);