issue 211, fixed a bug related emoticon editor component

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9447 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-09-30 06:11:36 +00:00
parent 05550891b2
commit 9d38087e72
2 changed files with 2 additions and 7 deletions

View file

@ -8,3 +8,4 @@
<!--@end-->
</select>
</div>
<div id="emoticons"></div>

View file

@ -19,16 +19,10 @@ function getEmoticons(emoName) {
function completeGetEmoticons(ret_obj) {
var emoticons = ret_obj['emoticons'].split("\n");
var html = [];
for(var i=0;i<emoticons.length;i++) {
html[html.length] = '<img src="./modules/editor/components/emoticon/tpl/images/'+emoticons[i]+'" class="emoticon" />';
}
jQuery('#popBody').html(html.join('')).find('img.emoticon').click(insertEmoticon);
if (_isPoped) {
setFixedPopupSize();
setTimeout(setFixedPopupSize,1000);
}
jQuery('#emoticons').html(html.join('')).find('img.emoticon').click(insertEmoticon);
}
/**