mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +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() {
|
function procAdminLogout() {
|
||||||
$oMemberController = &getController('member');
|
$oMemberController = &getController('member');
|
||||||
$oMemberController->procMemberLogout();
|
$oMemberController->procMemberLogout();
|
||||||
|
|
||||||
|
header('Location: '.getUrl('module','admin','act',''));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1 class="xeAdmin"><a href="{getUrl('','module','admin')}">XpressEngine</a></h1>
|
<h1 class="xeAdmin"><a href="{getUrl('','module','admin')}">XpressEngine</a></h1>
|
||||||
<ul class="gnb">
|
<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-->
|
<!--@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>
|
<li><a href="#" onclick="toggleAdminLang();return false;">Language</a>
|
||||||
<ul id="adminLang">
|
<ul id="adminLang">
|
||||||
|
|
|
||||||
|
|
@ -11,32 +11,22 @@ function doRecompileCacheFile() {
|
||||||
|
|
||||||
// 모듈 목록 오픈
|
// 모듈 목록 오픈
|
||||||
function toggleModuleMenu(category) {
|
function toggleModuleMenu(category) {
|
||||||
var obj = xGetElementById('module_'+category);
|
jQuery('#module_'+category).toggleClass('open');
|
||||||
if(obj.className == 'open') obj.className = '';
|
|
||||||
else obj.className = 'open';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 메인 모듈/ 애드온 토글
|
// 메인 모듈/ 애드온 토글
|
||||||
function toggleModuleAddon(target) {
|
function toggleModuleAddon(target) {
|
||||||
if(target == 'module') {
|
var b = (target == 'module');
|
||||||
xGetElementById('moduleOn').className = 'on';
|
|
||||||
xGetElementById('xeModules').style.display = 'block';
|
jQuery('#moduleOn').attr('class', b?'on':'');
|
||||||
xGetElementById('addonOn').className = '';
|
jQuery('#addonOn').attr('class', b?'':'on');
|
||||||
xGetElementById('xeAddons').style.display = 'none';
|
jQuery('#xeModules')[b?'show':'hide']();
|
||||||
} else {
|
jQuery('#xeAddons')[b?'hide':'show']();
|
||||||
xGetElementById('addonOn').className = 'on';
|
|
||||||
xGetElementById('xeAddons').style.display = 'block';
|
|
||||||
xGetElementById('moduleOn').className = '';
|
|
||||||
xGetElementById('xeModules').style.display = 'none';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// toggle language list
|
// toggle language list
|
||||||
function toggleAdminLang() {
|
function toggleAdminLang() {
|
||||||
var obj = xGetElementById("adminLang");
|
jQuery('#adminLang').toggleClass('open');
|
||||||
if(!obj) return;
|
|
||||||
if(obj.style.display == 'block') obj.style.display = 'none';
|
|
||||||
else obj.style.display = 'block';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// string to regex(초성검색용)
|
// string to regex(초성검색용)
|
||||||
|
|
@ -151,9 +141,4 @@ jQuery(function($){
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// logout
|
|
||||||
function doAdminLogout() {
|
|
||||||
exec_xml('admin','procAdminLogout',new Array(), function() { location.reload(); });
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue