summaryrefslogtreecommitdiff
path: root/static/js/src/chat.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/src/chat.js')
-rwxr-xr-xstatic/js/src/chat.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/static/js/src/chat.js b/static/js/src/chat.js
index b9b69d3..683d7b4 100755
--- a/static/js/src/chat.js
+++ b/static/js/src/chat.js
@@ -8,28 +8,28 @@ function initChat() {
$('#imgbutton input').attr('checked', ImgsEnabled).change(setImgsEnable);
/* $('#clearbutton input').click(function() {
track('UI', 'ClearScreen');
- $('.dump').remove();
+ $('.hump').remove();
$(this).removeAttr('checked');
return false;
});
*/
$('.oldmsg').each(function() {
- var dump = $(this);
- var content = dump.find(".content")
- MessageContentCache[dump.attr("id").substr(8)] = content.text()
+ var hump = $(this);
+ var content = hump.find(".content")
+ MessageContentCache[hump.attr("id").substr(8)] = content.text()
content.html(buildMsgContent(content.text(), Recips));
- if ((ImgsEnabled && dump.hasClass('contains-image')) || (TextEnabled && !dump.hasClass('contains-image'))) {
- if (dump.attr('nick') in MUTES) {
- dump.hide();
+ if ((ImgsEnabled && hump.hasClass('contains-image')) || (TextEnabled && !hump.hasClass('contains-image'))) {
+ if (hump.attr('nick') in MUTES) {
+ hump.hide();
}
else {
- dump.show();
+ hump.show();
}
}
else {
- dump.hide();
+ hump.hide();
}
});
Drag.bindImages();
@@ -115,7 +115,7 @@ function makePlainText() {
function initChatThumb(){
$(".chat-thumb").live('mouseover mouseout',
function(e) {
- var favorited = $(this).parents(".dump").hasClass("favorite") ? true : false;
+ var favorited = $(this).parents(".hump").hasClass("favorite") ? true : false;
if (e.type == "mouseover") {
if (favorited) {
$(this).attr("src", Imgs.chatThumbOff);
@@ -142,10 +142,10 @@ function initChatThumb(){
-// grab message id etc from some element e that's inside a dump
-// (messages have something like id="message-0001" class="dump" )
+// grab message id etc from some element e that's inside a hump
+// (messages have something like id="message-0001" class="hump" )
function getMessageInfo(e){
- var message = $(e).parents(".dump")
+ var message = $(e).parents(".hump")
var id = message.attr("id").substr(8) // cut "message-001" to "001"
var nick = message.attr("nick")
var link = "/p/" + nick + "/" + id
@@ -191,12 +191,12 @@ function setTextEnable() {
TextEnabled = true;
Preferences.setProperty("chat.textEnabled", "false");
track('UI', 'TextEnabled');
- $('.dump').not('.contains-image,'+muted).show();
+ $('.hump').not('.contains-image,'+muted).show();
} else {
TextEnabled = false;
Preferences.setProperty("chat.textEnabled", "false");
track('UI', 'TextDisabled');
- $('.dump').not('.contains-image').hide()
+ $('.hump').not('.contains-image').hide()
}
};