mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-15 01:09:57 +09:00
27 lines
971 B
JavaScript
27 lines
971 B
JavaScript
/**
|
|
* @file admin.js
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief admin 모듈의 javascript
|
|
**/
|
|
|
|
// 숏컷 삭제
|
|
function doDeleteShortCut(selected_module) {
|
|
var fo_obj = xGetElementById('fo_shortcut_info');
|
|
fo_obj.selected_module.value = selected_module;
|
|
procFilter(fo_obj, delete_shortcut);
|
|
}
|
|
|
|
// footer를 화면 크기에 맞춰 설정
|
|
xAddEventListener(window, 'load', fixAdminLayoutFooter);
|
|
xAddEventListener(window, 'resize', fixAdminLayoutFooter);
|
|
function fixAdminLayoutFooter() {
|
|
var headerHeight = xHeight(xGetElementById('header'));
|
|
var bodyHeight = xHeight(xGetElementById('cBody'));
|
|
var footerHeight = xHeight(xGetElementById('footer'));
|
|
var clientHeight = xClientHeight();
|
|
var newHeight = clientHeight - footerHeight - headerHeight + 71 + 38;
|
|
if(typeof(editor_height)!='undefined') newHeight += editor_height;
|
|
|
|
if(newHeight<bodyHeight) newHeight = bodyHeight;
|
|
xHeight(xGetElementById('cBody'), newHeight);
|
|
}
|