기본 이모티콘을 select로 선택가능하게 하고 3개의 이모티콘 팩 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3043 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-11-22 05:06:54 +00:00
parent d05dbf66f1
commit 636091170a
151 changed files with 67 additions and 33 deletions

View file

@ -10,6 +10,27 @@ function insertEmoticon(obj) {
opener.editorReplaceHTML(iframe_obj, text);
opener.editorFocus(opener.editorPrevSrl);
window.close();
}
/* 선택된 이모티콘 목록을 가져옴 */
function getEmoticons(emoticon) {
var params = new Array();
params['component'] = "emoticon";
params['emoticon'] = emoticon;
params['method'] = "getEmoticonList";
var response_tags = new Array('error','message','emoticons');
exec_xml('editor', 'procEditorCall', params, completeGetEmoticons, response_tags);
}
function completeGetEmoticons(ret_obj) {
var emoticons = ret_obj['emoticons'].split("\n");
var zone = xGetElementById("popBody");
var html = "";
for(var i=0;i<emoticons.length;i++) {
html += '<img src="./modules/editor/components/emoticon/tpl/images/'+emoticons[i]+'" onclick="insertEmoticon(this);return false;" class="emoticon" />';
}
xInnerHtml(zone, html);
setFixedPopupSize();
}