mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-13 15:32:15 +09:00
r5327의 레이아웃편집에서 위젯 생성 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5377 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
10308767e0
commit
732146cdb7
3 changed files with 12 additions and 3 deletions
|
|
@ -51,6 +51,8 @@ function completeGetSkinColorset(ret_obj, response_tags, params, fo_obj) {
|
|||
var selected_colorset = params["colorset"];
|
||||
for(var i=0;i<length;i++) sel.remove(0);
|
||||
|
||||
if(!ret_obj["colorset_list"]) return;
|
||||
|
||||
var colorset_list = ret_obj["colorset_list"].split("\n");
|
||||
var selected_index = 0;
|
||||
for(var i=0;i<colorset_list.length;i++) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<!--%import("../../admin/tpl/css/admin.css")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, generate_code);" id="fo_widget">
|
||||
<input type="hidden" name="selected_widget" value="{$selected_widget}" />
|
||||
|
||||
|
||||
<div id="popHeadder">
|
||||
<h3>{$lang->cmd_generate_code}</h3>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
function init() {
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief 위젯의 상세 정보(conf/info.xml)를 팝업 출력
|
||||
**/
|
||||
|
|
@ -37,8 +37,15 @@
|
|||
// 선택된 위젯 정보를 구함
|
||||
$oWidgetModel = &getModel('widget');
|
||||
|
||||
$widget_info = $oWidgetModel->getWidgetInfo(Context::get('selected_widget'));
|
||||
$oWidgetModel = &getModel('widget');
|
||||
$widget_list = $oWidgetModel->getDownloadedWidgetList();
|
||||
$selected_widget = Context::get('selected_widget');
|
||||
if(!$selected_widget) $selected_widget = $widget_list[0]->widget;
|
||||
|
||||
$widget_info = $oWidgetModel->getWidgetInfo($selected_widget);
|
||||
Context::set('widget_info', $widget_info);
|
||||
Context::set('widget_list', $widget_list);
|
||||
Context::set('selected_widget', $selected_widget);
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue