diff options
| author | yo momma <shutup@oops.wtf> | 2026-02-04 19:04:59 +0000 |
|---|---|---|
| committer | yo momma <shutup@oops.wtf> | 2026-02-04 19:04:59 +0000 |
| commit | ad4d74ea45be6b227027588f6515fb22fafc335a (patch) | |
| tree | dc33e854cc1f6f7d12ca746edef0e844be17f97f /static/js/src/chat.js | |
| parent | ae480c44c59a9e77ea279f2208dd7f932079e078 (diff) | |
Refactor UI: dump classes -> hump
Diffstat (limited to 'static/js/src/chat.js')
| -rwxr-xr-x | static/js/src/chat.js | 30 |
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() } }; |
