mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 08:39:58 +09:00
wikiXE의 바로가기 기능 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6203 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
43d7e944d1
commit
c03dd84d0c
4 changed files with 10 additions and 17 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
<!--%import("css/wiki.css")-->
|
<!--%import("css/wiki.css")-->
|
||||||
|
<!--%import("js/wiki.js")-->
|
||||||
|
|
||||||
<!--@if(!$module_info->colorset)-->
|
<!--@if(!$module_info->colorset)-->
|
||||||
{@$module_info->colorset = "white"}
|
{@$module_info->colorset = "white"}
|
||||||
|
|
@ -25,10 +26,9 @@
|
||||||
<div class="edit"><!--@if($oDocument->isExists())--><a href="{getUrl('act','dispWikiEditPage','entry',$entry)}">Edit</a><!--@end--></div>
|
<div class="edit"><!--@if($oDocument->isExists())--><a href="{getUrl('act','dispWikiEditPage','entry',$entry)}">Edit</a><!--@end--></div>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
<div class="go">
|
<div class="go">
|
||||||
<form action="{getUrl()}" method="get">
|
<form action="./" method="get" onsubmit="moveHistory(this); return false;">
|
||||||
<input type="hidden" name="mid" value="{$module_info->mid}" />
|
|
||||||
<input type="text" class="inputTypeText w100" name="entry" />
|
<input type="text" class="inputTypeText w100" name="entry" />
|
||||||
<span class="button"><input type="submit" value="Go" /></span>
|
<span calss="button"><input type="submit" value="{$lang->cmd_move}" /></span>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -31,16 +31,5 @@
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="pagination a1">
|
|
||||||
<a href="{getUrl('page','')}" class="prevEnd">{$lang->first_page}</a>
|
|
||||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
|
||||||
<!--@if($page == $page_no)-->
|
|
||||||
<strong>{$page_no}</strong>
|
|
||||||
<!--@else-->
|
|
||||||
<a href="{getUrl('page',$page_no)}">{$page_no}</a>
|
|
||||||
<!--@end-->
|
|
||||||
<!--@end-->
|
|
||||||
<a href="{getUrl('page',$page_navigation->last_page)}" class="nextEnd">{$lang->last_page}</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!--#include("footer.html")-->
|
<!--#include("footer.html")-->
|
||||||
|
|
|
||||||
6
modules/wiki/skins/xe_wiki/js/wiki.js
Normal file
6
modules/wiki/skins/xe_wiki/js/wiki.js
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
function moveHistory(fo_obj) {
|
||||||
|
if(!fo_obj.entry.value) return;
|
||||||
|
var url = current_url.setQuery('entry',fo_obj.entry.value);
|
||||||
|
if(typeof(xeVid)!='undefined') url = url.setQuery('vid',xeVid);
|
||||||
|
location.href=url;
|
||||||
|
}
|
||||||
|
|
@ -51,10 +51,8 @@
|
||||||
Context::set('entry',$entry);
|
Context::set('entry',$entry);
|
||||||
$histories = $oDocumentModel->getHistories($document_srl, 10, $page);
|
$histories = $oDocumentModel->getHistories($document_srl, 10, $page);
|
||||||
if(!$histories) $histories = array();
|
if(!$histories) $histories = array();
|
||||||
Context::set('histories',$histories->data);
|
Context::set('histories',$histories);
|
||||||
Context::set('oDocument', $oDocument);
|
Context::set('oDocument', $oDocument);
|
||||||
Context::set('page_navigation', $histories->page_navigation);
|
|
||||||
Context::set('page', $histories->page);
|
|
||||||
$this->setTemplateFile('histories');
|
$this->setTemplateFile('histories');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue