mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 17:22:20 +09:00
위젯 핸들링 하는 부분을 수정하여 페이지 수정시 위젯을 추가하게 되면 해당 페이지를 다시 읽어 플래시파일등의 추가 및 css의 오류가 없도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3603 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
de2a43eb43
commit
95cfcf7f83
10 changed files with 209 additions and 215 deletions
|
|
@ -98,10 +98,11 @@
|
|||
$oFileController->setFilesValid($module_info->module_srl);
|
||||
|
||||
// 캐시파일 재생성
|
||||
$this->procPageAdminRemoveWidgetCache();
|
||||
//$this->procPageAdminRemoveWidgetCache();
|
||||
|
||||
$this->add("module_srl", $module_info->module_srl);
|
||||
$this->add("page", Context::get('page'));
|
||||
$this->add("mid", $module_info->mid);
|
||||
$this->setMessage($msg_code);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -153,7 +153,9 @@
|
|||
Context::set('module_info', $this->module_info);
|
||||
|
||||
// 내용을 세팅
|
||||
$content = $this->module_info->content;
|
||||
$content = Context::get('content');
|
||||
if(!$content) $content = $this->module_info->content;
|
||||
Context::set('content', $content);
|
||||
|
||||
// 내용중 위젯들을 변환
|
||||
$oWidgetController = &getController('widget');
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
<response callback_func="completeInsertPageContent">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
<tag name="mid" />
|
||||
<tag name="module_srl" />
|
||||
<tag name="page" />
|
||||
</response>
|
||||
|
|
|
|||
|
|
@ -32,8 +32,9 @@ function completeInsertPageContent(ret_obj) {
|
|||
|
||||
var page = ret_obj['page'];
|
||||
var module_srl = ret_obj['module_srl'];
|
||||
var mid = ret_obj['mid'];
|
||||
|
||||
location.href = current_url.setQuery('act','');
|
||||
location.href = current_url.setQuery('mid',mid).setQuery('act','');
|
||||
}
|
||||
|
||||
/* 수정한 페이지 컨텐츠를 저장 */
|
||||
|
|
|
|||
|
|
@ -1,13 +1,20 @@
|
|||
<!--%import("filter/insert_page_content.xml")-->
|
||||
<!--%import("js/page_admin.js")-->
|
||||
<!--%import("css/page.css")-->
|
||||
|
||||
<!--%import("../../widget/tpl/js/widget.js")-->
|
||||
<!--%import("../../widget/tpl/css/widget.css")-->
|
||||
<!--#include("../../widget/tpl/widget_layer.html")-->
|
||||
|
||||
<div class="clear"></div>
|
||||
<div id="zonePageContent">{$page_content}</div>
|
||||
<div class="clear"></div>
|
||||
<div class="adminLayer">
|
||||
<form action="./" id="pageFo" onsubmit="return doSubmitPageContent(this);">
|
||||
<form action="./" method="post" id="pageFo" onsubmit="return doSubmitPageContent(this);">
|
||||
<input type="hidden" name="module" value="page" />
|
||||
<input type="hidden" name="act" value="dispPageAdminContentModify" />
|
||||
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
|
||||
<input type="hidden" name="content" value="" />
|
||||
<input type="hidden" name="content" value="{htmlspecialchars($content)}" />
|
||||
|
||||
<div class="tCenter">
|
||||
<select name="widget_list">
|
||||
|
|
@ -19,9 +26,10 @@
|
|||
<span class="button"><input type="button" value="{$lang->cmd_content_insert}" onclick="doAddContent('{$module_info->module_srl}'); return false;" /></span>
|
||||
<span class="button"><input type="button" value="{$lang->cmd_box_widget_insert}" onclick="doAddWidgetBox(); return false;" /></span>
|
||||
</div>
|
||||
|
||||
<div class="tRight">
|
||||
<span class="button"><input type="button" value="{$lang->cmd_remove_all_widgets}" onclick="removeAllWidget();return false;"/></span>
|
||||
<span class="button"><input type="button" value="{$lang->cmd_back}" onclick="location.href=current_url.setQuery('act','');return false;"/></span>
|
||||
<span class="button"><input type="button" value="{$lang->cmd_back}" onclick="location.href=current_url.setQuery('mid','{$module_info->mid}').setQuery('act','');return false;"/></span>
|
||||
<span class="button"><input type="submit" value="{$lang->cmd_save}"/></span>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue