Skip to content

Commit

Permalink
버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmosfarm committed Aug 28, 2015
1 parent d5ea30b commit 5d2c00b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions plugins/kboard/class/KBoardBuilder.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ public function setBoardID($board_id){
// 이미지 업로드를 위한 임시 미디어 그룹을 출력한다.
add_action('wp_footer', array($this, 'footerAddMediaGroup'));

// 플러그인 주소를 출력한다.
add_action('wp_footer', array($this, 'footerAddPluginURL'));

// 게시글 고유번호를 출력한다.
add_action('wp_footer', array($this, 'footerAddBoardID'));

Expand Down Expand Up @@ -427,6 +430,13 @@ public function footerAddMediaGroup(){
echo "<script>var kbaord_media_group='".uniqid()."';</script>\n";
}

/**
* 플러그인 주소를 출력한다.
*/
public function footerAddPluginURL(){
echo "<script>var kbaord_plugin_url='".KBOARD_URL_PATH."';</script>\n";
}

/**
* 게시판 번호를 출력한다.
*/
Expand Down
2 changes: 1 addition & 1 deletion plugins/kboard/template/js/editor_media_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
init:function(ed, url){
ed.addButton('kboard_media', {
title : 'KBoard 이미지 삽입하기',
image : '../wp-content/plugins/kboard/images/media-button-icon.png',
image : kbaord_plugin_url+'/images/media-button-icon.png',
onclick : kboard_editor_open_media
});
},
Expand Down

0 comments on commit 5d2c00b

Please sign in to comment.