Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
122:b28d30848c57 | 123:3ae999b0c53b |
---|---|
26 $('#shoutbox-smilies').click(function () { | 26 $('#shoutbox-smilies').click(function () { |
27 smiley_frame.toggle(); | 27 smiley_frame.toggle(); |
28 if (!smilies_loaded) { | 28 if (!smilies_loaded) { |
29 smiley_frame.load('/smiley/farm/', function () { | 29 smiley_frame.load('/smiley/farm/', function () { |
30 $('#shoutbox-busy-icon').hide(); | 30 $('#shoutbox-busy-icon').hide(); |
31 var txt = $("#shoutbox-smiley-input")[0]; | |
32 $('#shoutbox-smiley-frame img').click(function() { | |
33 txt.value += ' ' + this.alt + ' '; | |
34 txt.focus(); | |
35 }); | |
31 smilies_loaded = true; | 36 smilies_loaded = true; |
32 }); | 37 }); |
33 } | 38 } |
34 }); | 39 }); |
35 }); | 40 }); |
36 | |
37 function sb_smiley_click(code) | |
38 { | |
39 var txt = document.getElementById("shoutbox-smiley-input"); | |
40 txt.value += code; | |
41 txt.focus(); | |
42 } |