mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 23:29:57 +09:00
#826 support temporary save at page module
This commit is contained in:
parent
f55f193414
commit
f91f603f78
2 changed files with 26 additions and 4 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';
|
||||||
|
}
|
||||||
|
|
||||||
// 게시글을 가져와서 등록하기
|
// 게시글을 가져와서 등록하기
|
||||||
opener.location.href = opener.current_url.setQuery('document_srl', document_srl).setQuery('act', 'dispBoardWrite');
|
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');
|
||||||
|
break;
|
||||||
|
}
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1418,14 +1418,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';
|
||||||
|
}
|
||||||
|
|
||||||
// 게시글을 가져와서 등록하기
|
// 게시글을 가져와서 등록하기
|
||||||
opener.location.href = opener.current_url.setQuery('document_srl', document_srl).setQuery('act', 'dispBoardWrite');
|
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');
|
||||||
|
break;
|
||||||
|
}
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue