mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
#18591512 관리자 모듈 스크립트 정리
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7118 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a0b4c0cf1c
commit
43a4e760c0
3 changed files with 13 additions and 26 deletions
|
|
@ -47,6 +47,8 @@
|
|||
function procAdminLogout() {
|
||||
$oMemberController = &getController('member');
|
||||
$oMemberController->procMemberLogout();
|
||||
|
||||
header('Location: '.getUrl('module','admin','act',''));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
<div class="header">
|
||||
<h1 class="xeAdmin"><a href="{getUrl('','module','admin')}">XpressEngine</a></h1>
|
||||
<ul class="gnb">
|
||||
<li><a href="#" onclick="doAdminLogout(); return false;">Sign out</a></li>
|
||||
<li><a href="{getUrl('module','admin','act','procAdminLogout')}">Sign out</a></li>
|
||||
<!--@if($logged_info->is_admin=='Y')--><li><a href="{getUrl('','module','admin','act','dispAdminConfig')}">Settings</a></li><!--@end-->
|
||||
<li><a href="#" onclick="toggleAdminLang();return false;">Language</a>
|
||||
<ul id="adminLang">
|
||||
|
|
|
|||
|
|
@ -11,32 +11,22 @@ function doRecompileCacheFile() {
|
|||
|
||||
// 모듈 목록 오픈
|
||||
function toggleModuleMenu(category) {
|
||||
var obj = xGetElementById('module_'+category);
|
||||
if(obj.className == 'open') obj.className = '';
|
||||
else obj.className = 'open';
|
||||
jQuery('#module_'+category).toggleClass('open');
|
||||
}
|
||||
|
||||
// 메인 모듈/ 애드온 토글
|
||||
function toggleModuleAddon(target) {
|
||||
if(target == 'module') {
|
||||
xGetElementById('moduleOn').className = 'on';
|
||||
xGetElementById('xeModules').style.display = 'block';
|
||||
xGetElementById('addonOn').className = '';
|
||||
xGetElementById('xeAddons').style.display = 'none';
|
||||
} else {
|
||||
xGetElementById('addonOn').className = 'on';
|
||||
xGetElementById('xeAddons').style.display = 'block';
|
||||
xGetElementById('moduleOn').className = '';
|
||||
xGetElementById('xeModules').style.display = 'none';
|
||||
}
|
||||
var b = (target == 'module');
|
||||
|
||||
jQuery('#moduleOn').attr('class', b?'on':'');
|
||||
jQuery('#addonOn').attr('class', b?'':'on');
|
||||
jQuery('#xeModules')[b?'show':'hide']();
|
||||
jQuery('#xeAddons')[b?'hide':'show']();
|
||||
}
|
||||
|
||||
// toggle language list
|
||||
function toggleAdminLang() {
|
||||
var obj = xGetElementById("adminLang");
|
||||
if(!obj) return;
|
||||
if(obj.style.display == 'block') obj.style.display = 'none';
|
||||
else obj.style.display = 'block';
|
||||
jQuery('#adminLang').toggleClass('open');
|
||||
}
|
||||
|
||||
// string to regex(초성검색용)
|
||||
|
|
@ -152,8 +142,3 @@ jQuery(function($){
|
|||
});
|
||||
|
||||
});
|
||||
|
||||
// logout
|
||||
function doAdminLogout() {
|
||||
exec_xml('admin','procAdminLogout',new Array(), function() { location.reload(); });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue