From ab2715f972dfc4707987895d1e66f571689a9848 Mon Sep 17 00:00:00 2001 From: scottbot Date: Wed, 19 May 2010 21:17:57 -0400 Subject: Added profile test templates --- static/js/pichat.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'static/js') diff --git a/static/js/pichat.js b/static/js/pichat.js index da68baa..666f3da 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -512,9 +512,6 @@ function initProfile() { t.html(buildMsgContent(t.text())); }); initLogThumb() - if (window.location.href == 'http://dump.fm/scottbot') { - $('body').append($('')); - } }; function initLog() { -- cgit v1.2.3-70-g09d2 From 462d127bb4073bc3941a03757065b1ea40d8f3a3 Mon Sep 17 00:00:00 2001 From: dumpfmprod Date: Wed, 19 May 2010 21:19:09 -0400 Subject: Change chat palette behavior to always display button --- static/js/pichat.js | 31 +++++-------------------------- template/profile.st | 17 ++++++++--------- 2 files changed, 13 insertions(+), 35 deletions(-) (limited to 'static/js') diff --git a/static/js/pichat.js b/static/js/pichat.js index da68baa..ac89dc4 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -436,8 +436,6 @@ function initChat() { messageList = $("#messageList")[0] - if (!isEmptyObject(RawFavs)) paletteButtonShow() - initChatThumb() scrollToEnd() @@ -578,29 +576,6 @@ function initChatThumb(){ }) } -function paletteButtonHideAnim(){ - $("#msginputrapper").stop().animate({"marginRight": "374px"}, 'fast') - $("#msgSubmit").stop().animate({"right": "260px"}, 'fast') - $("#palette-button").stop().animate({"width": "0px"}, 'fast', 'swing', function(){ $("#palette-button").css("display", "none") }) -} -function paletteButtonHide(){ - $("#msginputrapper").css("marginRight", "374px") - $("#msgSubmit").css("right", "260px") - $("#palette-button").css("width", "0px") - $("#palette-button").css("display", "none") -} -function paletteButtonShowAnim(){ - $("#msginputrapper").stop().animate({"marginRight": "415px"}, 'fast') - $("#msgSubmit").stop().animate({"right": "300px"}, 'fast') - $("#palette-button").css("display", "inline-block") - $("#palette-button").stop().animate({"width": "40px"}, 'fast') -} -function paletteButtonShow(){ - $("#msginputrapper").css("marginRight", "415px") - $("#msgSubmit").css("right", "300px") - $("#palette-button").css("display", "inline-block") - $("#palette-button").css("width", "40px") -} function paletteToChat(img){ var chatText = $("#msgInput").val() @@ -639,7 +614,11 @@ function paletteBuildImageThumbs(){ function paletteShow(){ $("#palette").css("display", "block") - paletteBuildImageThumbs() + if (isEmptyObject(RawFavs)) { + $('#palette-thumbs').html('

This is where all the stuff you FAV goes!

To FAV a post click the little heart next to a users name.

Everything you fav gets saved to your profile.. Have fun!

'); + } else { + paletteBuildImageThumbs(); + } } function paletteHide(){ $("#palette").css("display", "none") diff --git a/template/profile.st b/template/profile.st index 5744691..9b7cbac 100644 --- a/template/profile.st +++ b/template/profile.st @@ -30,8 +30,12 @@ $dumps:{ d | $profile_dump(dump=d)$ }$
-

$nick$

- +

$nick$


+ $if(score_ent)$ + + $score$ + $score_ent$ + $endif$ $if(isadmin)$
Mute $nick$!
@@ -66,13 +70,8 @@
$endif$ - $if(score_ent)$ -
-

score

- $score$ - $score_ent$ -
- $endif$ + + $if(is_home)$
-- cgit v1.2.3-70-g09d2