mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
#826 support temporary save at page module
This commit is contained in:
parent
29f37ed999
commit
bfe3194af8
5 changed files with 34 additions and 6 deletions
|
|
@ -596,14 +596,25 @@ function doDocumentLoad(obj) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 저장된 게시글의 선택 */
|
/* 저장된 게시글의 선택 */
|
||||||
function doDocumentSelect(document_srl) {
|
function doDocumentSelect(document_srl, module) {
|
||||||
if(!opener || !opener.objForSavedDoc) {
|
if(!opener || !opener.objForSavedDoc) {
|
||||||
window.close();
|
window.close();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(module===undefined) {
|
||||||
|
module = 'document';
|
||||||
|
}
|
||||||
|
|
||||||
// 게시글을 가져와서 등록하기
|
// 게시글을 가져와서 등록하기
|
||||||
|
switch(module) {
|
||||||
|
case 'page' :
|
||||||
|
opener.location.href = opener.current_url.setQuery('document_srl', document_srl).setQuery('act', 'dispPageAdminContentModify');
|
||||||
|
break;
|
||||||
|
default :
|
||||||
opener.location.href = opener.current_url.setQuery('document_srl', document_srl).setQuery('act', 'dispBoardWrite');
|
opener.location.href = opener.current_url.setQuery('document_srl', document_srl).setQuery('act', 'dispBoardWrite');
|
||||||
|
break;
|
||||||
|
}
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -595,14 +595,25 @@ function doDocumentLoad(obj) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 저장된 게시글의 선택 */
|
/* 저장된 게시글의 선택 */
|
||||||
function doDocumentSelect(document_srl) {
|
function doDocumentSelect(document_srl, module) {
|
||||||
if(!opener || !opener.objForSavedDoc) {
|
if(!opener || !opener.objForSavedDoc) {
|
||||||
window.close();
|
window.close();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(module===undefined) {
|
||||||
|
module = 'document';
|
||||||
|
}
|
||||||
|
|
||||||
// 게시글을 가져와서 등록하기
|
// 게시글을 가져와서 등록하기
|
||||||
|
switch(module) {
|
||||||
|
case 'page' :
|
||||||
|
opener.location.href = opener.current_url.setQuery('document_srl', document_srl).setQuery('act', 'dispPageAdminContentModify');
|
||||||
|
break;
|
||||||
|
default :
|
||||||
opener.location.href = opener.current_url.setQuery('document_srl', document_srl).setQuery('act', 'dispBoardWrite');
|
opener.location.href = opener.current_url.setQuery('document_srl', document_srl).setQuery('act', 'dispBoardWrite');
|
||||||
|
break;
|
||||||
|
}
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
2
common/js/xe.min.js
vendored
2
common/js/xe.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -16,7 +16,7 @@
|
||||||
<td > <a href="#" onclick="jQuery('#saved_document_{$val->document_srl}').toggle(); setFixedPopupSize(); return false;">{$val->getTitle()}</a>
|
<td > <a href="#" onclick="jQuery('#saved_document_{$val->document_srl}').toggle(); setFixedPopupSize(); return false;">{$val->getTitle()}</a>
|
||||||
<div id="saved_document_{$val->document_srl}" class="saved_content" style="display:none;">{$val->getContent(false)}</div>
|
<div id="saved_document_{$val->document_srl}" class="saved_content" style="display:none;">{$val->getContent(false)}</div>
|
||||||
</td>
|
</td>
|
||||||
<td><a href="#" onclick="doDocumentSelect('{$val->document_srl}'); return false;" class="buttonSet buttonActive"><span>{$lang->cmd_select}</span></a></td>
|
<td><a href="#" onclick="doDocumentSelect('{$val->document_srl}', '{$val->getDocumentType()}'); return false;" class="buttonSet buttonActive"><span>{$lang->cmd_select}</span></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
||||||
|
|
@ -284,6 +284,12 @@ class pageAdminView extends page
|
||||||
$oDocument->setDocument($document_srl);
|
$oDocument->setDocument($document_srl);
|
||||||
Context::set('document_srl', $document_srl);
|
Context::set('document_srl', $document_srl);
|
||||||
}
|
}
|
||||||
|
else if(Context::get('document_srl'))
|
||||||
|
{
|
||||||
|
$document_srl = Context::get('document_srl');
|
||||||
|
$oDocument->setDocument($document_srl);
|
||||||
|
Context::set('document_srl', $document_srl);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$oDocument->add('module_srl', $this->module_info->module_srl);
|
$oDocument->add('module_srl', $this->module_info->module_srl);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue