mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix incorrect redirect when loading saved document from another module #2659
This commit is contained in:
parent
f051b58e09
commit
70a25057f0
2 changed files with 11 additions and 4 deletions
|
|
@ -1580,9 +1580,10 @@ function doDocumentLoad(obj) {
|
|||
*
|
||||
* @param int document_srl
|
||||
* @param string module
|
||||
* @param string mid
|
||||
* @return void
|
||||
*/
|
||||
function doDocumentSelect(document_srl, module) {
|
||||
function doDocumentSelect(document_srl, module, mid) {
|
||||
if (!opener) {
|
||||
window.close();
|
||||
return;
|
||||
|
|
@ -1590,6 +1591,9 @@ function doDocumentSelect(document_srl, module) {
|
|||
if (module === undefined) {
|
||||
module = 'document';
|
||||
}
|
||||
if (mid === undefined) {
|
||||
mid = current_mid;
|
||||
}
|
||||
|
||||
// 게시글을 가져와서 등록하기
|
||||
if (module === 'page') {
|
||||
|
|
@ -1602,7 +1606,7 @@ function doDocumentSelect(document_srl, module) {
|
|||
}
|
||||
opener.location.href = url;
|
||||
} else {
|
||||
opener.location.href = opener.current_url.setQuery('act', 'dispBoardWrite').setQuery('document_srl', document_srl);
|
||||
opener.location.href = opener.current_url.setQuery('mid', mid).setQuery('act', 'dispBoardWrite').setQuery('document_srl', document_srl);
|
||||
}
|
||||
|
||||
// 딜레이 후 창 닫기
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue