summaryrefslogtreecommitdiff
path: root/static/js/pichat.butt.js
diff options
context:
space:
mode:
authoryo momma <shutup@oops.wtf>2026-02-04 19:04:59 +0000
committeryo momma <shutup@oops.wtf>2026-02-04 19:04:59 +0000
commitad4d74ea45be6b227027588f6515fb22fafc335a (patch)
treedc33e854cc1f6f7d12ca746edef0e844be17f97f /static/js/pichat.butt.js
parentae480c44c59a9e77ea279f2208dd7f932079e078 (diff)
Refactor UI: dump classes -> hump
Diffstat (limited to 'static/js/pichat.butt.js')
-rwxr-xr-xstatic/js/pichat.butt.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/static/js/pichat.butt.js b/static/js/pichat.butt.js
index c78db99..9a4ed6a 100755
--- a/static/js/pichat.butt.js
+++ b/static/js/pichat.butt.js
@@ -471,9 +471,9 @@ function refresh() {
function initChat() {
$('.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()));
});
@@ -554,7 +554,7 @@ function initProfile() {
$('#edit-toggle').click(enableProfileEdit);
activateProfileEditable();
- $('.logged-dump .content').each(function() {
+ $('.logged-hump .content').each(function() {
var t = $(this);
t.html(buildMsgContent(t.text()));
});
@@ -565,7 +565,7 @@ function initProfile() {
};
function initLog() {
- $('.logged-dump .content').each(function() {
+ $('.logged-hump .content').each(function() {
var t = $(this);
t.html(buildMsgContent(t.text()));
});
@@ -576,9 +576,9 @@ function initLog() {
// jesus this logic is ugly
function initLogThumb(){
- $(".logged-dump .thumb").bind('mouseover mouseout',
+ $(".logged-hump .thumb").bind('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.logThumbOff);
@@ -602,7 +602,7 @@ 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);
@@ -892,10 +892,10 @@ function initBigHand(id){
}
-// 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
@@ -938,17 +938,17 @@ Share = {
Tag = {
"favorite": function(button){
var message = getMessageInfo(button)
- var favorited = ($(button).parents(".dump").hasClass("favorite")) ? true : false
+ var favorited = ($(button).parents(".hump").hasClass("favorite")) ? true : false
if (favorited) {
Tag.rm(message.id, "favorite")
- $(button).parents(".dump").removeClass("favorite")
+ $(button).parents(".hump").removeClass("favorite")
if (RawFavs[message.id]) {
delete RawFavs[message.id]
paletteImageCache = false
}
} else {
Tag.add(message.id, "favorite")
- $(button).parents(".dump").addClass("favorite")
+ $(button).parents(".hump").addClass("favorite")
if (RawFavs && MessageContentCache[message.id]) { // chat ui stuff
if ($("#palette-button").css("display") == "none")
paletteButtonShowAnim()