mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
호환성 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7913 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bb6c223ccb
commit
33b612e695
1 changed files with 9 additions and 5 deletions
|
|
@ -23,7 +23,7 @@ function completeGetEmoticons(ret_obj) {
|
||||||
for(var i=0;i<emoticons.length;i++) {
|
for(var i=0;i<emoticons.length;i++) {
|
||||||
html[html.length] = '<img src="./modules/editor/components/emoticon/tpl/images/'+emoticons[i]+'" class="emoticon" />';
|
html[html.length] = '<img src="./modules/editor/components/emoticon/tpl/images/'+emoticons[i]+'" class="emoticon" />';
|
||||||
}
|
}
|
||||||
jQuery('#popBody').html(html).delegate('img.emoticon', 'click', insertEmoticon);
|
jQuery('#popBody').html(html.join('')).find('img.emoticon').click(insertEmoticon);
|
||||||
|
|
||||||
if (_isPoped) {
|
if (_isPoped) {
|
||||||
setFixedPopupSize();
|
setFixedPopupSize();
|
||||||
|
|
@ -35,15 +35,19 @@ function completeGetEmoticons(ret_obj) {
|
||||||
* @brief Insert a selected emoticon into the document
|
* @brief Insert a selected emoticon into the document
|
||||||
* @params Event jQuery event
|
* @params Event jQuery event
|
||||||
*/
|
*/
|
||||||
function insertEmoticon(event) {
|
function insertEmoticon() {
|
||||||
var url, html, iframe, win = is_popup?opener:window;
|
var url, html, iframe, win = is_popup?opener:window;
|
||||||
|
|
||||||
if(!win) return;
|
if(!win) return;
|
||||||
|
|
||||||
win.editorFocus(opener.editorPrevSrl);
|
html = '<img src="'+this.src+'" class="emoticon" />';
|
||||||
win.editorRelKeys[opener.editorPrevSrl].pasteHTML(html);
|
|
||||||
|
|
||||||
if (is_popup) self.focus();
|
win.editorFocus(win.editorPrevSrl);
|
||||||
|
win.editorRelKeys[win.editorPrevSrl].pasteHTML(html);
|
||||||
|
|
||||||
|
if (is_popup) window.focus();
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// load default emoticon set
|
// load default emoticon set
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue