mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Redirect to short URL after insertDocument, insertComment, etc.
This commit is contained in:
parent
34a86defb6
commit
27cfa4aeba
2 changed files with 5 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ class ModuleObject extends Object
|
|||
function setRedirectUrl($url = './', $output = NULL)
|
||||
{
|
||||
$ajaxRequestMethod = array_flip($this->ajaxRequestMethod);
|
||||
if(!isset($ajaxRequestMethod[Context::getRequestMethod()]))
|
||||
if(isset($ajaxRequestMethod[Context::getRequestMethod()]))
|
||||
{
|
||||
$this->add('redirect_url', $url);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -191,6 +191,7 @@ class boardController extends board
|
|||
}
|
||||
|
||||
// return the results
|
||||
$this->setRedirectUrl(getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', '', 'document_srl', $output->get('document_srl')));
|
||||
$this->add('mid', Context::get('mid'));
|
||||
$this->add('document_srl', $output->get('document_srl'));
|
||||
|
||||
|
|
@ -399,6 +400,7 @@ class boardController extends board
|
|||
}
|
||||
|
||||
$this->setMessage('success_registed');
|
||||
$this->setRedirectUrl(getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', '', 'document_srl', $obj->document_srl) . '#comment_' . $obj->comment_srl);
|
||||
$this->add('mid', Context::get('mid'));
|
||||
$this->add('document_srl', $obj->document_srl);
|
||||
$this->add('comment_srl', $obj->comment_srl);
|
||||
|
|
@ -449,6 +451,7 @@ class boardController extends board
|
|||
$this->add('page', Context::get('page'));
|
||||
$this->add('document_srl', $output->get('document_srl'));
|
||||
$this->setMessage('success_deleted');
|
||||
$this->setRedirectUrl(getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', '', 'page', Context::get('page'), 'document_srl', $output->get('document_srl')));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -473,6 +476,7 @@ class boardController extends board
|
|||
$this->add('page', Context::get('page'));
|
||||
$this->add('document_srl', $output->get('document_srl'));
|
||||
$this->setMessage('success_deleted');
|
||||
$this->setRedirectUrl(getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', '', 'page', Context::get('page'), 'document_srl', $output->get('document_srl')));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue