Mercurial > public > sg101
diff media/js/shoutbox.js @ 123:3ae999b0c53b
Forums: added a jquery ui dialog of extra smileys.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 08 Nov 2009 21:15:31 +0000 |
parents | 03144b0d470d |
children | b43e1288ff80 |
line wrap: on
line diff
--- a/media/js/shoutbox.js Tue Oct 27 02:56:16 2009 +0000 +++ b/media/js/shoutbox.js Sun Nov 08 21:15:31 2009 +0000 @@ -28,15 +28,13 @@ if (!smilies_loaded) { smiley_frame.load('/smiley/farm/', function () { $('#shoutbox-busy-icon').hide(); + var txt = $("#shoutbox-smiley-input")[0]; + $('#shoutbox-smiley-frame img').click(function() { + txt.value += ' ' + this.alt + ' '; + txt.focus(); + }); smilies_loaded = true; }); } }); }); - -function sb_smiley_click(code) -{ - var txt = document.getElementById("shoutbox-smiley-input"); - txt.value += code; - txt.focus(); -}